From: Adam Kupczyk Date: Fri, 26 Jun 2020 16:04:57 +0000 (+0200) Subject: os/bluestore: Add ability to disable compaction X-Git-Tag: v15.2.5~85^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=c4312689ab7d32239d8b91684e3f57e9c032ea2f;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. Fixes: https://tracker.ceph.com/issues/46552 Signed-off-by: Adam Kupczyk (cherry-picked from commit 7b01af4d95bfa789b3b3247d016431fdbfd844a4) Conflicts: src/os/bluestore/BlueFS.cc --- diff --git a/src/common/legacy_config_opts.h b/src/common/legacy_config_opts.h index cf1ba8c0a5e3..e19404723afa 100644 --- a/src/common/legacy_config_opts.h +++ b/src/common/legacy_config_opts.h @@ -915,6 +915,7 @@ OPTION(bluefs_allocator, OPT_STR) // stupid | bitmap OPTION(bluefs_preextend_wal_files, OPT_BOOL) // this *requires* that rocksdb has recycling enabled OPTION(bluefs_log_replay_check_allocations, OPT_BOOL) 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 87a708c9ba45..af26972e22a2 100644 --- a/src/common/options.cc +++ b/src/common/options.cc @@ -4029,6 +4029,10 @@ std::vector