mirror of
https://github.com/ton-blockchain/ton
synced 2025-03-09 15:40:10 +00:00
allow db_root without "/" in the end
This commit is contained in:
parent
3d51e41766
commit
0dae2c157b
1 changed files with 3 additions and 3 deletions
|
@ -11,15 +11,15 @@ namespace validator {
|
|||
|
||||
std::string PackageId::path() const {
|
||||
if (temp) {
|
||||
return "files/packages/";
|
||||
return "/files/packages/";
|
||||
} else if (key) {
|
||||
char s[24];
|
||||
sprintf(s, "key%03d", id / 1000000);
|
||||
return PSTRING() << "archive/packages/" << s << "/";
|
||||
return PSTRING() << "/archive/packages/" << s << "/";
|
||||
} else {
|
||||
char s[20];
|
||||
sprintf(s, "arch%04d", id / 100000);
|
||||
return PSTRING() << "archive/packages/" << s << "/";
|
||||
return PSTRING() << "/archive/packages/" << s << "/";
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue