From 075f52e99106672a863f866d0c795b294f8873ef Mon Sep 17 00:00:00 2001 From: Patrick Donnelly Date: Mon, 26 Feb 2024 11:14:29 -0500 Subject: [PATCH] mds: skip print of empty_children if empty Signed-off-by: Patrick Donnelly (cherry picked from commit 7c1823ae5e04b283ed1ca0a02977549469a7845b) --- src/mds/SnapRealm.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/mds/SnapRealm.cc b/src/mds/SnapRealm.cc index 9d303bcb03a..2e8c7523412 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; -- 2.39.5