From: Venky Shankar Date: Thu, 16 Nov 2023 07:42:37 +0000 (-0500) Subject: mds: add debug when trying to merge directory fragments X-Git-Tag: v19.3.0~235^2~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=2f931f5114df7166bd2b6453cb23df70970c5fd5;p=ceph.git mds: add debug when trying to merge directory fragments Helps in debugging why a dirfrag is getting merged. Signed-off-by: Venky Shankar --- diff --git a/src/mds/MDBalancer.cc b/src/mds/MDBalancer.cc index cd2e7d9bd002..b0b26132aa2e 100644 --- a/src/mds/MDBalancer.cc +++ b/src/mds/MDBalancer.cc @@ -684,7 +684,12 @@ void MDBalancer::queue_merge(CDir *dir) } bool all = true; for (auto& sib : sibs) { - if (!sib->is_auth() || !sib->should_merge()) { + auto is_auth = sib->is_auth(); + auto should_merge = sib->should_merge(); + + dout(20) << ": sib=" << *sib << ", is_auth=" << is_auth << ", should_merge=" + << should_merge << dendl; + if (!is_auth || !should_merge) { all = false; break; }