]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
PG: do not choose stray osds as async_recovery_targets 22330/head
authorNeha Ojha <nojha@redhat.com>
Wed, 30 May 2018 18:33:41 +0000 (11:33 -0700)
committerNeha Ojha <nojha@redhat.com>
Wed, 30 May 2018 23:02:08 +0000 (16:02 -0700)
commitd96732d2448173f70f6514610d1c3780a7c8fab1
treefb488cca5bd5c83caa5c0063cbd549a2f3a2576a
parent516be9bafeed5f688dbdbc4af33f50d9272f5e41
PG: do not choose stray osds as async_recovery_targets

Without this change, we might accept stray osds as async_recovery_targets,
and need to ensure that they get a chance to become part of the acting set
after recovery is over.

However, when choose_acting() is called in the Recovered state, we set
restrict_to_up_acting=true, which does not allow them to get back to the
acting set.

Therefore, similar to backfill, do not allow stray osds to become
async_recovery_targets.

Signed-off-by: Neha Ojha <nojha@redhat.com>
src/osd/PG.cc