]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd/PG: do not blindly roll forward to log.head
authorSage Weil <sage@redhat.com>
Wed, 11 Jul 2018 01:22:49 +0000 (20:22 -0500)
committerSage Weil <sage@redhat.com>
Wed, 11 Jul 2018 21:15:49 +0000 (16:15 -0500)
commit858ff647ff7bd1f6277823b5185ead5ffebc05b0
treeed1d8e70cfb2adbed231f1a24e339321dae54392
parent860296c0309d7955229def04902f8da99b129123
osd/PG: do not blindly roll forward to log.head

If we are told we can roll forward by the primary, we should only roll
forward as far as the primary says we can.

This probably came out of the similar case in append_log(), but notably
that roll_forward() only happens if !transaction_applied (i.e., backfill
target), and that condition is not checked here.

Fixes: http://tracker.ceph.com/issues/24597
Signed-off-by: Sage Weil <sage@redhat.com>
src/osd/PG.cc