From: Adam Kupczyk Date: Fri, 26 Jun 2020 16:04:57 +0000 (+0200) Subject: os/bluestore: Add ability to disable compaction X-Git-Tag: v16.1.0~1630^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=7b01af4d95bfa789b3b3247d016431fdbfd844a4;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 --- diff --git a/src/common/legacy_config_opts.h b/src/common/legacy_config_opts.h index b501f238813..7e7b77ccfd6 100644 --- a/src/common/legacy_config_opts.h +++ b/src/common/legacy_config_opts.h @@ -915,6 +915,7 @@ OPTION(bluefs_sync_write, OPT_BOOL) OPTION(bluefs_allocator, OPT_STR) // stupid | bitmap 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 119494e3adb..4eb3cd892d0 100644 --- a/src/common/options.cc +++ b/src/common/options.cc @@ -4046,6 +4046,10 @@ std::vector