MCPcopy Create free account
hub / github.com/ElementsProject/elements / ManifestFileName

Method ManifestFileName

src/leveldb/db/recovery_test.cc:85–93  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

83 }
84
85 std::string ManifestFileName() {
86 std::string current;
87 ASSERT_OK(ReadFileToString(env_, CurrentFileName(dbname_), &current));
88 size_t len = current.size();
89 if (len > 0 && current[len - 1] == '\n') {
90 current.resize(len - 1);
91 }
92 return dbname_ + "/" + current;
93 }
94
95 std::string LogName(uint64_t number) { return LogFileName(dbname_, number); }
96

Callers

nothing calls this directly

Calls 4

ReadFileToStringFunction · 0.85
CurrentFileNameFunction · 0.85
sizeMethod · 0.45
resizeMethod · 0.45

Tested by

no test coverage detected