diff --git a/db/db_test.cc b/db/db_test.cc index 6de4d2d84..84f6e5e52 100644 --- a/db/db_test.cc +++ b/db/db_test.cc @@ -472,6 +472,11 @@ class DBTest { ReopenWithColumnFamilies(cfs_plus_default, options); } + void ReopenWithColumnFamilies(const std::vector& cfs, + const std::vector& options) { + ASSERT_OK(TryReopenWithColumnFamilies(cfs, options)); + } + void ReopenWithColumnFamilies(const std::vector& cfs, const Options* options = nullptr) { ASSERT_OK(TryReopenWithColumnFamilies(cfs, options)); @@ -2581,6 +2586,12 @@ TEST(DBTest, CompressedCache) { ASSERT_TRUE(false); } CreateAndReopenWithCF({"pikachu"}, &options); + // default column family doesn't have block cache + Options no_block_cache_opts; + no_block_cache_opts.no_block_cache = true; + no_block_cache_opts.statistics = options.statistics; + ReopenWithColumnFamilies({"default", "pikachu"}, + {&no_block_cache_opts, &options}); Random rnd(301);