From: Simon Gao Date: Sat, 15 Aug 2020 09:54:36 +0000 (+0800) Subject: mds : skip show_cache if level of log is lower than 7 X-Git-Tag: v16.1.0~1289^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=0ba1c5c8586c34d3aeae8634ece666080023b361;p=ceph.git mds : skip show_cache if level of log is lower than 7 Signed-off-by: Simon Gao --- diff --git a/src/mds/MDCache.cc b/src/mds/MDCache.cc index 1bfa76fd2a64..d4f408c09305 100644 --- a/src/mds/MDCache.cc +++ b/src/mds/MDCache.cc @@ -12621,6 +12621,8 @@ void MDCache::show_subtrees(int dbl, bool force_print) void MDCache::show_cache() { + if (!g_conf()->subsys.should_gather()) + return; dout(7) << "show_cache" << dendl; auto show_func = [this](CInode *in) {