]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: indicate when split_at is complete for analysis
authorPatrick Donnelly <pdonnell@redhat.com>
Mon, 26 Feb 2024 16:15:13 +0000 (11:15 -0500)
committerPatrick Donnelly <pdonnell@redhat.com>
Wed, 3 Apr 2024 17:01:31 +0000 (13:01 -0400)
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
(cherry picked from commit 54c20f5505a989c8d7d3d42fa29d48d63240b9a2)

src/mds/SnapRealm.cc

index 1e6c5ce2c86dc1d81a77850e992f13b473221c73..44fa6fd1025f5b7e7123ac6f108e0ee5a2eed1c3 100644 (file)
@@ -348,6 +348,7 @@ void SnapRealm::split_at(SnapRealm *child)
   }
 
   // split inodes_with_caps
+  uint64_t count = 0;
   for (auto p = inodes_with_caps.begin(); !p.end(); ) {
     CInode *in = *p;
     ++p;
@@ -355,10 +356,13 @@ void SnapRealm::split_at(SnapRealm *child)
     if (child->inode->is_ancestor_of(in)) {
       dout(25) << " child gets " << *in << dendl;
       in->move_to_realm(child);
+      ++count;
     } else {
       dout(25) << "    keeping " << *in << dendl;
     }
   }
+
+  dout(10) << __func__ << ": split " << count << " inodes" << dendl;
 }
 
 void SnapRealm::merge_to(SnapRealm *newparent)