提交 6aef6612 编写于 作者: I Igor Canadi

some improvements to CompressedCache test

上级 422bb09c
......@@ -472,6 +472,11 @@ class DBTest {
ReopenWithColumnFamilies(cfs_plus_default, options);
}
void ReopenWithColumnFamilies(const std::vector<std::string>& cfs,
const std::vector<const Options*>& options) {
ASSERT_OK(TryReopenWithColumnFamilies(cfs, options));
}
void ReopenWithColumnFamilies(const std::vector<std::string>& 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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册