From 2c2f3888976667ad878a838defc34a32f39cf3cb Mon Sep 17 00:00:00 2001 From: Yi Wu Date: Mon, 16 Apr 2018 17:56:59 -0700 Subject: [PATCH] db_bench fillXXXdeterministic should respect compression type Summary: db_bench fillXXXdeterministic should respect compression type when calling CompactFiles(). Closes https://github.com/facebook/rocksdb/pull/3731 Differential Revision: D7647761 Pulled By: yiwu-arbug fbshipit-source-id: 15e12429e0dd93ece2231b015f2e26c2d94781e6 --- tools/db_bench_tool.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/db_bench_tool.cc b/tools/db_bench_tool.cc index 6bbd45c12..45151b8f3 100644 --- a/tools/db_bench_tool.cc +++ b/tools/db_bench_tool.cc @@ -3785,6 +3785,7 @@ void VerifyDBFromDB(std::string& truth_db_name) { for (size_t i = 0; i < num_db; i++) { auto db = db_list[i]; auto compactionOptions = CompactionOptions(); + compactionOptions.compression = FLAGS_compression_type_e; auto options = db->GetOptions(); MutableCFOptions mutable_cf_options(options); for (size_t j = 0; j < sorted_runs[i].size(); j++) { @@ -3836,6 +3837,7 @@ void VerifyDBFromDB(std::string& truth_db_name) { for (size_t i = 0; i < num_db; i++) { auto db = db_list[i]; auto compactionOptions = CompactionOptions(); + compactionOptions.compression = FLAGS_compression_type_e; auto options = db->GetOptions(); MutableCFOptions mutable_cf_options(options); for (size_t j = 0; j < sorted_runs[i].size(); j++) {