Revert "Prefix scan: db_bench and bug fixes"

This reverts commit c2bd8f4824.
This commit is contained in:
Tyler Harter
2013-08-22 18:01:11 -07:00
parent 4c6dc7a9ae
commit 94cf218720
10 changed files with 16 additions and 164 deletions

View File

@@ -135,24 +135,6 @@ Status TableCache::Get(const ReadOptions& options,
return s;
}
bool TableCache::PrefixMayMatch(const ReadOptions& options,
uint64_t file_number,
uint64_t file_size,
const Slice& internal_prefix,
bool* table_io) {
Cache::Handle* handle = nullptr;
Status s = FindTable(storage_options_, file_number,
file_size, &handle, table_io);
bool may_match = true;
if (s.ok()) {
Table* t =
reinterpret_cast<Table*>(cache_->Value(handle));
may_match = t->PrefixMayMatch(internal_prefix);
cache_->Release(handle);
}
return may_match;
}
void TableCache::Evict(uint64_t file_number) {
char buf[sizeof(file_number)];
EncodeFixed64(buf, file_number);