From 1957dc74847f56e181cd5411c2d7379a2337a3ea Mon Sep 17 00:00:00 2001 From: Udi Date: Wed, 6 Apr 2022 07:46:15 +0300 Subject: [PATCH] wip --- cache/lru_cache.cc | 1 + table/block_based/block_based_table_reader.cc | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/cache/lru_cache.cc b/cache/lru_cache.cc index 19624c8ba..9f46bba5e 100644 --- a/cache/lru_cache.cc +++ b/cache/lru_cache.cc @@ -625,6 +625,7 @@ Cache::Handle* LRUCacheShard::Lookup( return reinterpret_cast(e); } + bool LRUCacheShard::Ref(Cache::Handle* h) { LRUHandle* e = reinterpret_cast(h); MutexLock l(&mutex_); diff --git a/table/block_based/block_based_table_reader.cc b/table/block_based/block_based_table_reader.cc index abb643d55..29159356e 100644 --- a/table/block_based/block_based_table_reader.cc +++ b/table/block_based/block_based_table_reader.cc @@ -1128,7 +1128,7 @@ Status BlockBasedTable::GetDataBlockFromCache( Cache::Handle* block_cache_compressed_handle = nullptr; Statistics* statistics = rep_->ioptions.statistics.get(); bool using_zstd = rep_->blocks_definitely_zstd_compressed; - const FilterPolicy* filter_policy = rep_->filter_policy; + const FilterPolicy* filter_policy = rep_->filter_policy;` Cache::CreateCallback create_cb = GetCreateCallback( read_amp_bytes_per_bit, statistics, using_zstd, filter_policy);