From: Jimyeong Lee Date: Tue, 1 Aug 2023 23:07:27 +0000 (+0900) Subject: client: Adjust multi_targets map assert condition X-Git-Tag: v19.0.0~406^2~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=0d97348fbd91cd32ff1bd54dd5487ebd0fe95bd0;p=ceph.git 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 --- 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()