From 2d3f567f1e9b8cbe8c670e75804814371c02c1c2 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 9d303bcb03ae8..2e8c7523412c5 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