]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
osd/PG: avoid choose_acting picking want with > pool size items
authorSage Weil <sage@redhat.com>
Tue, 11 Sep 2018 16:12:22 +0000 (11:12 -0500)
committerSage Weil <sage@redhat.com>
Tue, 11 Sep 2018 16:12:22 +0000 (11:12 -0500)
commitc3e2990c39952a1fc4593076c5b2f0dea6cdcdd3
tree29478c17923197957315a80ffc240bc28d6ee204
parent10f1c4c9ded19a8d6aef95b3cc3ca049ad90383d
osd/PG: avoid choose_acting picking want with > pool size items

If the pool size recently changed, we might see an up that is larger than
the pool size.  Or, we might already have selected a primary that is not
part of up, and then add all up osds and end up with a want that is too
big.

Fixes: http://tracker.ceph.com/issues/35924
Signed-off-by: Sage Weil <sage@redhat.com>
src/osd/PG.cc