From 711505e8f9effbf4f0ada3bfe8d25dbc7e86861e Mon Sep 17 00:00:00 2001 From: Igor Fedotov Date: Tue, 22 Dec 2020 00:01:52 +0300 Subject: [PATCH] os/bluestore: introduce bluestore_rocksdb_options_annex config parameter. This simplifies modifying a subset of rocksdb settings since it eliminates the need to re-provide bluestore's rocksdb settings. Signed-off-by: Igor Fedotov --- PendingReleaseNotes | 3 +++ src/common/legacy_config_opts.h | 1 + src/common/options.cc | 6 +++++- src/os/bluestore/BlueStore.cc | 18 ++++++++++++++++++ 4 files changed, 27 insertions(+), 1 deletion(-) diff --git a/PendingReleaseNotes b/PendingReleaseNotes index af1c10f1843f..4d4513e99b38 100644 --- a/PendingReleaseNotes +++ b/PendingReleaseNotes @@ -1,5 +1,8 @@ >=16.0.0 -------- +* New bluestore_rocksdb_options_annex config parameter. Complements + bluestore_rocksdb_options and allows setting rocksdb options without repeating + the existing defaults. * $pid expansion in config paths like `admin_socket` will now properly expand to the daemon pid for commands like `ceph-mds` or `ceph-osd`. Previously only `ceph-fuse`/`rbd-nbd` expanded `$pid` with the actual daemon pid. diff --git a/src/common/legacy_config_opts.h b/src/common/legacy_config_opts.h index 162b324fdaa8..08c26249f9ac 100644 --- a/src/common/legacy_config_opts.h +++ b/src/common/legacy_config_opts.h @@ -999,6 +999,7 @@ OPTION(bluestore_bitmapallocator_span_size, OPT_INT) // must be power of 2 align OPTION(bluestore_max_deferred_txc, OPT_U64) OPTION(bluestore_max_defer_interval, OPT_U64) OPTION(bluestore_rocksdb_options, OPT_STR) +OPTION(bluestore_rocksdb_options_annex, OPT_STR) OPTION(bluestore_fsck_on_mount, OPT_BOOL) OPTION(bluestore_fsck_on_mount_deep, OPT_BOOL) OPTION(bluestore_fsck_quick_fix_on_mount, OPT_BOOL) diff --git a/src/common/options.cc b/src/common/options.cc index 57901687e77f..b268787ca4c2 100644 --- a/src/common/options.cc +++ b/src/common/options.cc @@ -4515,7 +4515,11 @@ std::vector