From 467a765e2faf2f8c52c59cf5a3c8ea6b8516c0fe Mon Sep 17 00:00:00 2001 From: Patrick Donnelly Date: Mon, 26 Feb 2024 11:15:13 -0500 Subject: [PATCH] mds: indicate when split_at is complete for analysis Signed-off-by: Patrick Donnelly (cherry picked from commit 54c20f5505a989c8d7d3d42fa29d48d63240b9a2) --- src/mds/SnapRealm.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/mds/SnapRealm.cc b/src/mds/SnapRealm.cc index 1e6c5ce2c86dc..44fa6fd1025f5 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) -- 2.39.5