From: Yan, Zheng Date: Wed, 21 Dec 2016 09:52:40 +0000 (+0800) Subject: mds: make MDCache::show_subtree less verbose when thrash exports is enabled X-Git-Tag: v12.0.0~220^2~8 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=6ae33aace1a0f3d4538fd39bd39f36b3399079da;p=ceph.git mds: make MDCache::show_subtree less verbose when thrash exports is enabled Subtree map can be very large when thrash exports is enabled. Printing subtree map causes size log to increase quickly. Signed-off-by: Yan, Zheng --- diff --git a/src/mds/MDCache.cc b/src/mds/MDCache.cc index c0519aad644b..a6e7ca907b41 100644 --- a/src/mds/MDCache.cc +++ b/src/mds/MDCache.cc @@ -11583,6 +11583,9 @@ void MDCache::force_readonly() void MDCache::show_subtrees(int dbl) { + if (g_conf->mds_thrash_exports) + dbl += 15; + //dout(10) << "show_subtrees" << dendl; if (!g_conf->subsys.should_gather(ceph_subsys_mds, dbl))