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

Method Get

src/leveldb/db/table_cache.cc:100–112  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

98}
99
100Status TableCache::Get(const ReadOptions& options, uint64_t file_number,
101 uint64_t file_size, const Slice& k, void* arg,
102 void (*handle_result)(void*, const Slice&,
103 const Slice&)) {
104 Cache::Handle* handle = nullptr;
105 Status s = FindTable(file_number, file_size, &handle);
106 if (s.ok()) {
107 Table* t = reinterpret_cast<TableAndFile*>(cache_->Value(handle))->table;
108 s = t->InternalGet(options, k, arg, handle_result);
109 cache_->Release(handle);
110 }
111 return s;
112}
113
114void TableCache::Evict(uint64_t file_number) {
115 char buf[sizeof(file_number)];

Callers

nothing calls this directly

Calls 3

InternalGetMethod · 0.80
ValueMethod · 0.45
ReleaseMethod · 0.45

Tested by

no test coverage detected