]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
ReplicatedPG: persist write errors in the pg log
authorJosh Durgin <jdurgin@redhat.com>
Mon, 23 May 2016 23:20:11 +0000 (16:20 -0700)
committerJosh Durgin <jdurgin@redhat.com>
Sat, 9 Jul 2016 01:33:13 +0000 (18:33 -0700)
commitcf8e466f34e273cb54904e7af130860083328ee0
treeb8d4fc843bbe076a21e8b15af884d94989c1706e
parent41861fae08a1c68b3eabe765a63e6e5e337e111d
ReplicatedPG: persist write errors in the pg log

This is required to prevent re-ordering of guarded writes or deletes
in the presence of network failures and resends.

Use the existing submit_log_entries() method to initiate a repop that
only updates the pg log.

Keep the write error semantics close to the existing implementation -
if we have a buffer, return it, but do not persist the buffer for now.

Refs: http://tracker.ceph.com/issues/14468
Signed-off-by: Josh Durgin <jdurgin@redhat.com>
src/osd/ReplicatedPG.cc
src/osd/ReplicatedPG.h