From: Cory Snyder Date: Thu, 21 Apr 2022 17:13:22 +0000 (-0400) Subject: bluestore: add config option to allow rocksdb iterator bounds to be disabled X-Git-Tag: v16.2.8~1^2~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=11fb62a0be67d3365ff6b46be0f15d40bf6312dc;p=ceph.git bluestore: add config option to allow rocksdb iterator bounds to be disabled Add osd_rocksdb_iterator_bounds_enabled config option to allow rocksdb iterator bounds to be disabled. Also includes minor refactoring to shorten code associated with IteratorBounds initialization in bluestore. Signed-off-by: Cory Snyder (cherry picked from commit ca3ccd9) Conflicts: src/common/options/osd.yaml.in Cherry-pick notes: - Conflicts due to option definition in common/options.cc in Pacific vs. common/options/osd.yaml.in in later releases --- diff --git a/src/common/legacy_config_opts.h b/src/common/legacy_config_opts.h index 059113b8cc78..3dbd1fe464a8 100644 --- a/src/common/legacy_config_opts.h +++ b/src/common/legacy_config_opts.h @@ -768,6 +768,7 @@ OPTION(osd_failsafe_full_ratio, OPT_FLOAT) // what % full makes an OSD "full" (f OPTION(osd_fast_shutdown, OPT_BOOL) OPTION(osd_fast_shutdown_notify_mon, OPT_BOOL) // tell mon the OSD is shutting down on osd_fast_shutdown OPTION(osd_fast_fail_on_connection_refused, OPT_BOOL) // immediately mark OSDs as down once they refuse to accept connections +OPTION(osd_rocksdb_iterator_bounds_enabled, OPT_BOOL) // whether omap iterator bounds are applied to rocksdb iterator ReadOptions OPTION(osd_pg_object_context_cache_count, OPT_INT) OPTION(osd_tracing, OPT_BOOL) // true if LTTng-UST tracepoints should be enabled diff --git a/src/common/options.cc b/src/common/options.cc index 9a073faa9ed4..7fda07387233 100644 --- a/src/common/options.cc +++ b/src/common/options.cc @@ -3798,6 +3798,10 @@ std::vector