]> git-server-git.apps.pok.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:02:26 +0000 (13:02 -0400)
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
(cherry picked from commit 7c1823ae5e04b283ed1ca0a02977549469a7845b)

src/mds/SnapRealm.cc

index c7a7d75bc242d0608731bdb1c04e83fa0f26641e..d4e70e19b508eaa6ec791ab619de9cd23d6d1f28 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;