From 6ae33aace1a0f3d4538fd39bd39f36b3399079da Mon Sep 17 00:00:00 2001 From: "Yan, Zheng" Date: Wed, 21 Dec 2016 17:52:40 +0800 Subject: [PATCH] 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 --- src/mds/MDCache.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/mds/MDCache.cc b/src/mds/MDCache.cc index c0519aad644..a6e7ca907b4 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)) -- 2.47.3