]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
librbd: apply orphaned maintenance ops after journal replay 7785/head
authorJason Dillaman <dillaman@redhat.com>
Wed, 24 Feb 2016 23:07:45 +0000 (18:07 -0500)
committerJason Dillaman <dillaman@redhat.com>
Tue, 1 Mar 2016 12:39:42 +0000 (07:39 -0500)
commite4f73b3bc71b1cb83614ed90721aadbae7a4ff44
treefcca5ee8a29fe7c8e2391794049574e2b8280f89
parentc4387301c15da7ff84e03561099233c24769feeb
librbd: apply orphaned maintenance ops after journal replay

If a client recorded a maintenance op to the journal but crashed
before writing the op finish event, the image will be in an
inconsistent state.  Therefore, once the end of the journal is
reached, attempt to apply all queued ops.

Fixes: #14822
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
src/librbd/journal/Replay.cc
src/librbd/journal/Replay.h
src/test/librbd/journal/test_mock_Replay.cc