]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mds : skip show_cache if level of log is lower than 7 36641/head
authorSimon Gao <simon29rock@gmail.com>
Sat, 15 Aug 2020 09:54:36 +0000 (17:54 +0800)
committerSimon Gao <simon29rock@gmail.com>
Sun, 16 Aug 2020 10:02:16 +0000 (18:02 +0800)
Signed-off-by: Simon Gao <simon29rock@gmail.com>
src/mds/MDCache.cc

index 1bfa76fd2a643a8facdbaf0135533900cbbf681b..d4f408c09305632ff537df21ca97574c7cff6779 100644 (file)
@@ -12621,6 +12621,8 @@ void MDCache::show_subtrees(int dbl, bool force_print)
 
 void MDCache::show_cache()
 {
+  if (!g_conf()->subsys.should_gather<ceph_subsys_mds, 7>())
+    return;
   dout(7) << "show_cache" << dendl;
 
   auto show_func = [this](CInode *in) {