mirror of
https://github.com/kvazar-network/kevacoin.git
synced 2025-01-17 18:40:09 +00:00
Merge pull request #3555
060fdb4 Squashed 'src/leveldb/' changes from e991315..9094c7f (Pieter Wuille)
This commit is contained in:
commit
fb766b640c
@ -29,14 +29,19 @@ std::string LogFileName(const std::string& name, uint64_t number) {
|
|||||||
return MakeFileName(name, number, "log");
|
return MakeFileName(name, number, "log");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TableFileName returns the filenames we usually write to, while
|
||||||
|
// SSTTableFileName returns the alternative filenames we also try to read from
|
||||||
|
// for backward compatibility. For now, swap them around.
|
||||||
|
// TODO: when compatibility is no longer necessary, swap them back
|
||||||
|
// (TableFileName to use "ldb" and SSTTableFileName to use "sst").
|
||||||
std::string TableFileName(const std::string& name, uint64_t number) {
|
std::string TableFileName(const std::string& name, uint64_t number) {
|
||||||
assert(number > 0);
|
assert(number > 0);
|
||||||
return MakeFileName(name, number, "ldb");
|
return MakeFileName(name, number, "sst");
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string SSTTableFileName(const std::string& name, uint64_t number) {
|
std::string SSTTableFileName(const std::string& name, uint64_t number) {
|
||||||
assert(number > 0);
|
assert(number > 0);
|
||||||
return MakeFileName(name, number, "sst");
|
return MakeFileName(name, number, "ldb");
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string DescriptorFileName(const std::string& dbname, uint64_t number) {
|
std::string DescriptorFileName(const std::string& dbname, uint64_t number) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user