| 98 | } |
| 99 | |
| 100 | Status 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 | |
| 114 | void TableCache::Evict(uint64_t file_number) { |
| 115 | char buf[sizeof(file_number)]; |
nothing calls this directly
no test coverage detected