From e9b20046e1815d11b899b079f97a396ceb6da3e8 Mon Sep 17 00:00:00 2001 From: Adam Kupczyk Date: Fri, 26 Jun 2020 18:04:57 +0200 Subject: [PATCH] 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/46714 Signed-off-by: Adam Kupczyk Cherry-picked from 7b01af4d95bfa789b3b3247d016431fdbfd844a4 Conflicts: src/os/bluestore/BlueFS.cc --- src/common/legacy_config_opts.h | 1 + src/common/options.cc | 4 ++++ src/os/bluestore/BlueFS.cc | 16 ++++++++++------ 3 files changed, 15 insertions(+), 6 deletions(-) diff --git a/src/common/legacy_config_opts.h b/src/common/legacy_config_opts.h index 405a6832339..020889e9298 100644 --- a/src/common/legacy_config_opts.h +++ b/src/common/legacy_config_opts.h @@ -952,6 +952,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 296ec00e630..c7bd45881a6 100644 --- a/src/common/options.cc +++ b/src/common/options.cc @@ -4383,6 +4383,10 @@ std::vector