From 0d97348fbd91cd32ff1bd54dd5487ebd0fe95bd0 Mon Sep 17 00:00:00 2001 From: Jimyeong Lee Date: Wed, 2 Aug 2023 08:07:27 +0900 Subject: [PATCH] client: Adjust multi_targets map assert condition When access to map, even do not add element to set of map, the set is initiated, so make the assert condition reasonable. Signed-off-by: Jimyeong Lee --- src/common/CommandTable.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/common/CommandTable.h b/src/common/CommandTable.h index 672161af6522..cf57ee5e0ac3 100644 --- a/src/common/CommandTable.h +++ b/src/common/CommandTable.h @@ -80,7 +80,9 @@ public: ~CommandTable() { ceph_assert(commands.empty()); - ceph_assert(multi_targets.empty()); + for (const auto& pair : multi_targets) { + ceph_assert(pair.second.empty()); + } } ceph_tid_t get_new_multi_target_id() -- 2.47.3