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 <zyan@redhat.com>
This commit is contained in:
Yan, Zheng 2016-12-21 17:52:40 +08:00
parent a4e5ad2ff4
commit 6ae33aace1

View 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))