Skip to content

Commit

Permalink
#2382: ccm-lb: stop adding cluster when load is zero (empty cluster)
Browse files Browse the repository at this point in the history
  • Loading branch information
lifflander committed Dec 23, 2024
1 parent 80c3517 commit 023b907
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/vt/vrt/collection/balance/temperedlb/temperedlb.cc
Original file line number Diff line number Diff line change
Expand Up @@ -766,7 +766,9 @@ void TemperedLB::computeClusterSummary() {

for (auto const& [shared_id, _] : shared_block_size_) {
auto info = makeClusterSummary(shared_id);
cur_clusters_.emplace(shared_id, std::move(info));
if (info.load != 0) {
cur_clusters_.emplace(shared_id, std::move(info));
}
}
}

Expand Down

0 comments on commit 023b907

Please sign in to comment.