From 49672ad5c459b98d8dec94db54c2cb5b7da5ce8f Mon Sep 17 00:00:00 2001 From: Casey Bodley Date: Tue, 6 Aug 2019 16:48:52 -0400 Subject: [PATCH] kv/rocksdb: support rmrange unconditionally removes the config options rocksdb_enable_rmrange and rocksdb_max_items_rmrange that avoid calls to DeleteRange() Signed-off-by: Casey Bodley --- src/common/legacy_config_opts.h | 1 - src/common/options.cc | 9 -- src/kv/RocksDBStore.cc | 151 +++----------------------------- src/kv/RocksDBStore.h | 6 +- 4 files changed, 13 insertions(+), 154 deletions(-) diff --git a/src/common/legacy_config_opts.h b/src/common/legacy_config_opts.h index df13b12c80f..bb7541fd108 100644 --- a/src/common/legacy_config_opts.h +++ b/src/common/legacy_config_opts.h @@ -828,7 +828,6 @@ OPTION(rocksdb_perf, OPT_BOOL) // Enabling this will have 5-10% impact on perfor OPTION(rocksdb_collect_compaction_stats, OPT_BOOL) //For rocksdb, this behavior will be an overhead of 5%~10%, collected only rocksdb_perf is enabled. OPTION(rocksdb_collect_extended_stats, OPT_BOOL) //For rocksdb, this behavior will be an overhead of 5%~10%, collected only rocksdb_perf is enabled. OPTION(rocksdb_collect_memory_stats, OPT_BOOL) //For rocksdb, this behavior will be an overhead of 5%~10%, collected only rocksdb_perf is enabled. -OPTION(rocksdb_enable_rmrange, OPT_BOOL) // see https://github.com/facebook/rocksdb/blob/master/include/rocksdb/db.h#L253 // rocksdb options that will be used for omap(if omap_backend is rocksdb) OPTION(filestore_rocksdb_options, OPT_STR) diff --git a/src/common/options.cc b/src/common/options.cc index c9160fc6c27..554de3d98e1 100644 --- a/src/common/options.cc +++ b/src/common/options.cc @@ -3947,15 +3947,6 @@ std::vector