]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd/PG: avoid choose_acting picking want with > pool size items 24344/head
authorSage Weil <sage@redhat.com>
Tue, 11 Sep 2018 16:12:22 +0000 (11:12 -0500)
committerPrashant D <pdhange@redhat.com>
Mon, 1 Oct 2018 01:02:26 +0000 (21:02 -0400)
commita0d49cf83ae3b845f2724aec28234d8796c66747
treef216c63aa393bbdd9ac132d9988a862bb92717b4
parent4695a60617d83bee512a8cc8ca6a999b1205e314
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