]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
osd/PG: move reject_reservation out of RemoteReservationRejected reaction
authorSage Weil <sage@redhat.com>
Sun, 1 Oct 2017 19:59:31 +0000 (14:59 -0500)
committerSage Weil <sage@redhat.com>
Sun, 1 Oct 2017 20:06:19 +0000 (15:06 -0500)
commit57d18f0e8d9b0428a193c63112a28ddd046337b4
tree8541c9f6cd7fd640b8650c7494bc258a61a54482
parentaf334673019f9e5e0dd75ed793bf7e157cc31100
osd/PG: move reject_reservation out of RemoteReservationRejected reaction

The RemoteReservationRejected event is also submitted when we are a
replica or backfill target and get a MBackfillReserve REJECT message
because the primary canceled or was preempted.  In that case, we don't
want to send a REJECT back to the primary; we only need to send it in the
cases where *we*, locally, decide to reject.  Move the call to those call
sites.

Signed-off-by: Sage Weil <sage@redhat.com>
src/osd/PG.cc