MCPcopy Create free account
hub / github.com/baidu/tera / GetTableFileSign

Function GetTableFileSign

src/leveldb/db/table_cache.cc:37–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35}
36
37static std::string GetTableFileSign(const std::string& dbname, const uint64_t* file_number) {
38 return dbname + std::string(reinterpret_cast<const char*>(file_number), sizeof(*file_number));
39}
40
41TableCache::TableCache(size_t byte_size) : cache_(NewLRUCache(byte_size)) {}
42

Callers 2

FindTableMethod · 0.85
EvictMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected