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: v18.2.4~70^2~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=ca0823a371b1aac47e37a56202c1256c76196944;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 (cherry picked from commit 2f931f5114df7166bd2b6453cb23df70970c5fd5) --- diff --git a/src/mds/MDBalancer.cc b/src/mds/MDBalancer.cc index dffbf208e513..da785179e7d0 100644 --- a/src/mds/MDBalancer.cc +++ b/src/mds/MDBalancer.cc @@ -686,7 +686,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; }