diff --git a/examples/rocksdb_option_file_example.ini b/examples/rocksdb_option_file_example.ini index bf5fb33044..dcbc9a308a 100644 --- a/examples/rocksdb_option_file_example.ini +++ b/examples/rocksdb_option_file_example.ini @@ -103,6 +103,7 @@ level0_stop_writes_trigger=20 compression=kSnappyCompression level0_file_num_compaction_trigger=4 + purge_redundant_kvs_while_flush=true max_write_buffer_size_to_maintain=0 memtable_factory=SkipListFactory max_grandparent_overlap_factor=8 diff --git a/options/cf_options.cc b/options/cf_options.cc index 604aa99eee..f7abb7874e 100644 --- a/options/cf_options.cc +++ b/options/cf_options.cc @@ -509,6 +509,9 @@ static std::unordered_map {"compaction_measure_io_stats", {0, OptionType::kBoolean, OptionVerificationType::kDeprecated, OptionTypeFlags::kNone}}, + {"purge_redundant_kvs_while_flush", + {0, OptionType::kBoolean, OptionVerificationType::kDeprecated, + OptionTypeFlags::kNone}}, {"inplace_update_support", {offset_of(&ImmutableCFOptions::inplace_update_support), OptionType::kBoolean, OptionVerificationType::kNormal, diff --git a/options/options_test.cc b/options/options_test.cc index e547036ca1..95521f1f02 100644 --- a/options/options_test.cc +++ b/options/options_test.cc @@ -93,6 +93,7 @@ TEST_F(OptionsTest, GetOptionsFromMapTest) { {"inplace_update_support", "true"}, {"report_bg_io_stats", "true"}, {"compaction_measure_io_stats", "false"}, + {"purge_redundant_kvs_while_flush", "false"}, {"inplace_update_num_locks", "25"}, {"memtable_prefix_bloom_size_ratio", "0.26"}, {"memtable_whole_key_filtering", "true"}, @@ -2255,6 +2256,7 @@ TEST_F(OptionsOldApiTest, GetOptionsFromMapTest) { {"inplace_update_support", "true"}, {"report_bg_io_stats", "true"}, {"compaction_measure_io_stats", "false"}, + {"purge_redundant_kvs_while_flush", "false"}, {"inplace_update_num_locks", "25"}, {"memtable_prefix_bloom_size_ratio", "0.26"}, {"memtable_whole_key_filtering", "true"},