From: Adam Kupczyk Date: Fri, 26 Jun 2020 16:04:57 +0000 (+0200) Subject: os/bluestore: Add ability to disable compaction X-Git-Tag: v12.2.14~5^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=dfb3d6d99b2065349ef46bbf8b66d58610b93a17;p=ceph.git os/bluestore: Add ability to disable compaction This ability only makes sense as a step that allows to perform fsck before commiting recovered bluefs log. Signed-off-by: Adam Kupczyk --- diff --git a/src/common/legacy_config_opts.h b/src/common/legacy_config_opts.h index da5d961dccc..9e2315362eb 100644 --- a/src/common/legacy_config_opts.h +++ b/src/common/legacy_config_opts.h @@ -996,6 +996,7 @@ OPTION(bluefs_sync_write, OPT_BOOL) OPTION(bluefs_allocator, OPT_STR) // stupid | bitmap OPTION(bluefs_preextend_wal_files, OPT_BOOL) // this *requires* that rocksdb has recycling enabled OPTION(bluefs_replay_recovery, OPT_BOOL) +OPTION(bluefs_replay_recovery_disable_compact, OPT_BOOL) OPTION(bluestore_bluefs, OPT_BOOL) OPTION(bluestore_bluefs_env_mirror, OPT_BOOL) // mirror to normal Env for debug diff --git a/src/common/options.cc b/src/common/options.cc index 5c982c81e03..a772ec02332 100644 --- a/src/common/options.cc +++ b/src/common/options.cc @@ -3385,6 +3385,10 @@ std::vector