Skip to content

Commit

Permalink
fix: check for ASSIGNED state when loadQueuesInfo (#546)
Browse files Browse the repository at this point in the history
Signed-off-by: dorjesinpo <[email protected]>
  • Loading branch information
dorjesinpo authored Dec 13, 2024
1 parent 8625cab commit e4f6990
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/groups/mqb/mqbc/mqbc_clusterutil.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2193,6 +2193,10 @@ void ClusterUtil::loadQueuesInfo(bsl::vector<bmqp_ctrlmsg::QueueInfo>* out,
for (UriToQueueInfoMapCIter qCit = queuesInfoPerDomain.cbegin();
qCit != queuesInfoPerDomain.cend();
++qCit) {
if (qCit->second->state() != ClusterStateQueueInfo::k_ASSIGNED) {
continue; // CONTINUE
}

bmqp_ctrlmsg::QueueInfo queueInfo;
queueInfo.uri() = qCit->second->uri().asString();
queueInfo.partitionId() = qCit->second->partitionId();
Expand Down

0 comments on commit e4f6990

Please sign in to comment.