From: Patrick Donnelly Date: Mon, 26 Feb 2024 16:14:29 +0000 (-0500) Subject: mds: skip print of empty_children if empty X-Git-Tag: v19.1.0~73^2~6 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=075f52e99106672a863f866d0c795b294f8873ef;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 9d303bcb03ae..2e8c7523412c 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;