]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: skip print of empty_children if empty
authorPatrick Donnelly <pdonnell@redhat.com>
Mon, 26 Feb 2024 16:14:29 +0000 (11:14 -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 7c1823ae5e04b283ed1ca0a02977549469a7845b)

src/mds/SnapRealm.cc

index 9d303bcb03ae8946fcb8c6d9fc30e7dec71b5b4c..2e8c7523412c5417f22828cbe670cef7ed6c47b0 100644 (file)
@@ -329,7 +329,9 @@ void SnapRealm::split_at(SnapRealm *child)
   // it's a dir.
 
   // split open_children
-  dout(10) << " open_children are " << open_children << dendl;
+  if (!open_children.empty()) {
+    dout(10) << " open_children are " << open_children << dendl;
+  }
   for (set<SnapRealm*>::iterator p = open_children.begin();
        p != open_children.end(); ) {
     SnapRealm *realm = *p;