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
main
Yi Wu 7 years ago committed by Facebook Github Bot
parent b4f333922a
commit 2c2f388897
  1. 2
      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++) { for (size_t i = 0; i < num_db; i++) {
auto db = db_list[i]; auto db = db_list[i];
auto compactionOptions = CompactionOptions(); auto compactionOptions = CompactionOptions();
compactionOptions.compression = FLAGS_compression_type_e;
auto options = db->GetOptions(); auto options = db->GetOptions();
MutableCFOptions mutable_cf_options(options); MutableCFOptions mutable_cf_options(options);
for (size_t j = 0; j < sorted_runs[i].size(); j++) { 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++) { for (size_t i = 0; i < num_db; i++) {
auto db = db_list[i]; auto db = db_list[i];
auto compactionOptions = CompactionOptions(); auto compactionOptions = CompactionOptions();
compactionOptions.compression = FLAGS_compression_type_e;
auto options = db->GetOptions(); auto options = db->GetOptions();
MutableCFOptions mutable_cf_options(options); MutableCFOptions mutable_cf_options(options);
for (size_t j = 0; j < sorted_runs[i].size(); j++) { for (size_t j = 0; j < sorted_runs[i].size(); j++) {

Loading…
Cancel
Save