]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.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>
Thu, 5 Oct 2017 19:38:38 +0000 (14:38 -0500)
commit92ff2cbd69c444c6648889a2da7e01be6b00311e
tree823ab4918acd9106669345c1ec7eab5113aff1bf
parent58c52baeaed4a0a6dd5aed076db60988845431d0
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>
(cherry picked from commit 57d18f0e8d9b0428a193c63112a28ddd046337b4)
src/osd/PG.cc