From: Patrick Donnelly Date: Mon, 26 Feb 2024 16:14:29 +0000 (-0500) Subject: mds: skip print of empty_children if empty X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=9b25c1aa92de649f289166a5d9ed326b67e2a10c;p=ceph.git mds: skip print of empty_children if empty Signed-off-by: Patrick Donnelly (cherry picked from commit 7c1823ae5e04b283ed1ca0a02977549469a7845b) --- diff --git a/src/mds/SnapRealm.cc b/src/mds/SnapRealm.cc index c7a7d75bc24..d4e70e19b50 100644 --- a/src/mds/SnapRealm.cc +++ b/src/mds/SnapRealm.cc @@ -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::iterator p = open_children.begin(); p != open_children.end(); ) { SnapRealm *realm = *p;