Skip to content

Commit da6c7b0

Browse files
authored
Merge pull request ceph#57381 from kamoltat/wip-ksirivad-fix-65371
PeeringState.cc: Only populate want_acting when num_osds < bucket_max Reviewed by: Samuel Just <[email protected]>
2 parents 620e062 + e26545f commit da6c7b0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/osd/PeeringState.cc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2106,7 +2106,9 @@ void PeeringState::calc_replicated_acting_stretch(
21062106
* and then by the ordering token of the next osd */
21072107
bucket_heap_t aheap;
21082108
std::for_each(ancestors.begin(), ancestors.end(), [&](auto &anc) {
2109-
aheap.push_if_nonempty(anc.second);
2109+
if (anc.second.get_num_selected() < bucket_max) {
2110+
aheap.push_if_nonempty(anc.second);
2111+
}
21102112
});
21112113

21122114
/* and pull from this heap until it's empty or we have enough.

0 commit comments

Comments
 (0)