From: Sage Weil Date: Tue, 22 Dec 2015 18:31:07 +0000 (-0500) Subject: os/bluestore: add some slow debug path X-Git-Tag: v10.0.3~154^2~91 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=3133eca9dc56dea0e36424af2e791ad5e8a779c4;p=ceph.git os/bluestore: add some slow debug path Signed-off-by: Sage Weil --- diff --git a/src/common/config_opts.h b/src/common/config_opts.h index abc4d99e7eef..e4b87f6fdd49 100644 --- a/src/common/config_opts.h +++ b/src/common/config_opts.h @@ -885,6 +885,7 @@ OPTION(bluestore_overlay_max_length, OPT_INT, 65536) OPTION(bluestore_overlay_max, OPT_INT, 0) OPTION(bluestore_open_by_handle, OPT_BOOL, true) OPTION(bluestore_o_direct, OPT_BOOL, true) +OPTION(bluestore_debug_misc, OPT_BOOL, false) OPTION(kstore_max_ops, OPT_U64, 512) OPTION(kstore_max_bytes, OPT_U64, 64*1024*1024) diff --git a/src/os/bluestore/BlueStore.cc b/src/os/bluestore/BlueStore.cc index ecae38d61927..b400c9d9f9d6 100644 --- a/src/os/bluestore/BlueStore.cc +++ b/src/os/bluestore/BlueStore.cc @@ -641,12 +641,15 @@ BlueStore::OnodeRef BlueStore::Collection::get_onode( Onode *on; if (v.length() == 0) { assert(r == -ENOENT); - if (!create) + if (!g_conf->bluestore_debug_misc && + !create) return OnodeRef(); // new on = new Onode(oid, key); on->dirty = true; + if (g_conf->bluestore_debug_misc && !create) + on->exists = on->dirty = false; } else { // loaded assert(r >=0);