os/bluestore: Removed bluestore_debug_misc option

Signed-off-by: Adam Kupczyk <akupczyk@redhat.com>
This commit is contained in:
Adam Kupczyk 2020-11-05 11:22:51 +01:00
parent 7d490c05d3
commit 2c66ff7351
4 changed files with 1 additions and 8 deletions

View File

@ -1058,7 +1058,6 @@ OPTION(bluestore_blobid_prealloc, OPT_U64)
OPTION(bluestore_clone_cow, OPT_BOOL) // do copy-on-write for clones
OPTION(bluestore_default_buffered_read, OPT_BOOL)
OPTION(bluestore_default_buffered_write, OPT_BOOL)
OPTION(bluestore_debug_misc, OPT_BOOL)
OPTION(bluestore_debug_no_reuse_blocks, OPT_BOOL)
OPTION(bluestore_debug_small_allocations, OPT_INT)
OPTION(bluestore_debug_too_many_blobs_threshold, OPT_INT)

View File

@ -4811,10 +4811,6 @@ std::vector<Option> get_global_options() {
.set_flag(Option::FLAG_RUNTIME)
.set_description("Cache writes by default (unless hinted NOCACHE or WONTNEED)"),
Option("bluestore_debug_misc", Option::TYPE_BOOL, Option::LEVEL_DEV)
.set_default(false)
.set_description(""),
Option("bluestore_debug_no_reuse_blocks", Option::TYPE_BOOL, Option::LEVEL_DEV)
.set_default(false)
.set_description(""),

View File

@ -3617,8 +3617,7 @@ BlueStore::OnodeRef BlueStore::Collection::get_onode(
}
if (v.length() == 0) {
ceph_assert(r == -ENOENT);
if (!store->cct->_conf->bluestore_debug_misc &&
!create)
if (!create)
return OnodeRef();
// new object, new onode

View File

@ -7890,7 +7890,6 @@ int main(int argc, char **argv) {
g_ceph_context->_conf.set_val_or_die("bluestore_fsck_on_mkfs", "false");
g_ceph_context->_conf.set_val_or_die("bluestore_fsck_on_mount", "false");
g_ceph_context->_conf.set_val_or_die("bluestore_fsck_on_umount", "false");
g_ceph_context->_conf.set_val_or_die("bluestore_debug_misc", "true");
g_ceph_context->_conf.set_val_or_die("bluestore_debug_small_allocations", "4");
g_ceph_context->_conf.set_val_or_die("bluestore_debug_freelist", "true");
g_ceph_context->_conf.set_val_or_die("bluestore_clone_cow", "true");