From 78bbdef530bd36fa299d496bd1013cf39d8e203a Mon Sep 17 00:00:00 2001 From: Levi Tamasi Date: Wed, 24 Aug 2022 13:08:43 -0700 Subject: [PATCH] Fix a typo in BlobSecondaryCacheTest (#10566) Summary: Pull Request resolved: https://github.com/facebook/rocksdb/pull/10566 Test Plan: `make check` Reviewed By: riversand963 Differential Revision: D38989926 Pulled By: ltamasi fbshipit-source-id: 6402635fe745e4e7eb3083ef9ad9f04c0177d762 --- db/blob/blob_source_test.cc | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/db/blob/blob_source_test.cc b/db/blob/blob_source_test.cc index d3c8339e8..b3e3c953f 100644 --- a/db/blob/blob_source_test.cc +++ b/db/blob/blob_source_test.cc @@ -1040,12 +1040,12 @@ class BlobSecondaryCacheTest : public DBTestBase { // Set a small cache capacity to evict entries from the cache, and to test // that secondary cache is used properly. - lru_cache_ops_.capacity = 1024; - lru_cache_ops_.num_shard_bits = 0; - lru_cache_ops_.strict_capacity_limit = true; - lru_cache_ops_.metadata_charge_policy = kDontChargeCacheMetadata; - lru_cache_ops_.high_pri_pool_ratio = 0.2; - lru_cache_ops_.low_pri_pool_ratio = 0.2; + lru_cache_opts_.capacity = 1024; + lru_cache_opts_.num_shard_bits = 0; + lru_cache_opts_.strict_capacity_limit = true; + lru_cache_opts_.metadata_charge_policy = kDontChargeCacheMetadata; + lru_cache_opts_.high_pri_pool_ratio = 0.2; + lru_cache_opts_.low_pri_pool_ratio = 0.2; secondary_cache_opts_.capacity = 8 << 20; // 8 MB secondary_cache_opts_.num_shard_bits = 0; @@ -1060,7 +1060,7 @@ class BlobSecondaryCacheTest : public DBTestBase { Options options_; - LRUCacheOptions lru_cache_ops_; + LRUCacheOptions lru_cache_opts_; CompressedSecondaryCacheOptions secondary_cache_opts_; std::string db_id_; @@ -1073,9 +1073,9 @@ TEST_F(BlobSecondaryCacheTest, GetBlobsFromSecondaryCache) { } secondary_cache_opts_.compression_type = kSnappyCompression; - lru_cache_ops_.secondary_cache = + lru_cache_opts_.secondary_cache = NewCompressedSecondaryCache(secondary_cache_opts_); - options_.blob_cache = NewLRUCache(lru_cache_ops_); + options_.blob_cache = NewLRUCache(lru_cache_opts_); options_.cf_paths.emplace_back( test::PerThreadDBPath( @@ -1134,7 +1134,7 @@ TEST_F(BlobSecondaryCacheTest, GetBlobsFromSecondaryCache) { read_options.verify_checksums = true; auto blob_cache = options_.blob_cache; - auto secondary_cache = lru_cache_ops_.secondary_cache; + auto secondary_cache = lru_cache_opts_.secondary_cache; Cache::CreateCallback create_cb = [&](const void* buf, size_t size, void** out_obj,