From: Patrick Donnelly Date: Mon, 26 Feb 2024 16:15:13 +0000 (-0500) Subject: mds: indicate when split_at is complete for analysis X-Git-Tag: v19.1.0~73^2~3 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=4d820983f86aff308bda746bedfff21e5887f097;p=ceph.git mds: indicate when split_at is complete for analysis Signed-off-by: Patrick Donnelly (cherry picked from commit 54c20f5505a989c8d7d3d42fa29d48d63240b9a2) --- diff --git a/src/mds/SnapRealm.cc b/src/mds/SnapRealm.cc index 1e6c5ce2c86d..44fa6fd1025f 100644 --- a/src/mds/SnapRealm.cc +++ b/src/mds/SnapRealm.cc @@ -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)