]> 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>
Wed, 13 Mar 2024 13:49:41 +0000 (19:19 +0530)
Helps in debugging why a dirfrag is getting merged.

Signed-off-by: Venky Shankar <vshankar@redhat.com>
(cherry picked from commit 2f931f5114df7166bd2b6453cb23df70970c5fd5)

src/mds/MDBalancer.cc

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