]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
osd/: use PGBackend::call_write_ordered to submit log entries in commit order
authorSamuel Just <sjust@redhat.com>
Thu, 3 Nov 2016 00:38:13 +0000 (17:38 -0700)
committerSamuel Just <sjust@redhat.com>
Thu, 17 Nov 2016 18:41:33 +0000 (10:41 -0800)
commit967764707affd458300845d4a0e77407ef00b1af
tree64b21ef528b593b97179b5bee6fe3906f7485345
parentf7b55ec14415811d750e79838f746a91106ba81e
osd/: use PGBackend::call_write_ordered to submit log entries in commit order

Without this change, we might submit new log entries for marking objects
unfound in a way that causes replicas to process them out-of-order with
pending writes with lower version numbers.  That would be bad.  Instead,
add an interface to allow an arbitrary callback to be called after any
previously submitted transaction commit, but before any subsequently
submitted operations commit.

Signed-off-by: Samuel Just <sjust@redhat.com>
src/osd/PGBackend.h
src/osd/ReplicatedBackend.h
src/osd/ReplicatedPG.cc