]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: add debug when trying to merge directory fragments
authorVenky Shankar <vshankar@redhat.com>
Thu, 16 Nov 2023 07:42:37 +0000 (02:42 -0500)
committerVenky Shankar <vshankar@redhat.com>
Tue, 21 Nov 2023 06:41:52 +0000 (12:11 +0530)
Helps in debugging why a dirfrag is getting merged.

Signed-off-by: Venky Shankar <vshankar@redhat.com>
src/mds/MDBalancer.cc

index cd2e7d9bd002b945c29a9500997050541ad1dbde..b0b26132aa2edde303a86ae416244b19274ff19f 100644 (file)
@@ -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;
         }