Skip to content

Commit 2fe48b4

Browse files
committed
Fix[mqbblp::ClusterCatalog]: get d_clusters.size() under mutex
Signed-off-by: Evgeny Malygin <emalygin@bloomberg.net>
1 parent 82ee395 commit 2fe48b4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/groups/mqb/mqbblp/mqbblp_clustercatalog.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -778,10 +778,10 @@ void ClusterCatalog::getClusters(
778778
BSLS_ASSERT_SAFE(out);
779779

780780
out->clear();
781-
out->reserve(d_clusters.size());
782781

783782
bslmt::LockGuard<bslmt::Mutex> guard(&d_mutex); // d_mutex LOCK
784783

784+
out->reserve(d_clusters.size());
785785
for (ClustersMapConstIter it = d_clusters.begin(); it != d_clusters.end();
786786
++it) {
787787
out->push_back(it->second.d_cluster_sp);

0 commit comments

Comments
 (0)