]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: make MDCache::show_subtree less verbose when thrash exports is enabled
authorYan, Zheng <zyan@redhat.com>
Wed, 21 Dec 2016 09:52:40 +0000 (17:52 +0800)
committerYan, Zheng <zyan@redhat.com>
Tue, 10 Jan 2017 07:23:34 +0000 (15:23 +0800)
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 <zyan@redhat.com>
src/mds/MDCache.cc

index c0519aad644b908af0b3dfad367d08daf8733b14..a6e7ca907b410d8f1b1042fcabf4bcd525081e06 100644 (file)
@@ -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))