]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd/PG: avoid choose_acting picking want with > pool size items 24299/head
authorSage Weil <sage@redhat.com>
Tue, 11 Sep 2018 16:12:22 +0000 (11:12 -0500)
committerPrashant D <pdhange@redhat.com>
Thu, 27 Sep 2018 03:49:53 +0000 (23:49 -0400)
commit264faa590c85e141257d0b1dc1d3c798f5e4280a
tree1b15bb45c08b8b67fb85f0e5f18f8ba6b309601e
parent1fdbedfc6a08ac9363ac6b3a3390cda1f877ed9e
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>
(cherry picked from commit c3e2990c39952a1fc4593076c5b2f0dea6cdcdd3)
src/osd/PG.cc