]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
librbd: journal callback to interrupt replay 9788/head
authorJason Dillaman <dillaman@redhat.com>
Thu, 16 Jun 2016 13:27:50 +0000 (09:27 -0400)
committerJason Dillaman <dillaman@redhat.com>
Fri, 17 Jun 2016 15:43:46 +0000 (11:43 -0400)
commit9687e5e34aca98934fcf04089ead2794629455a1
treeee49fbc08464d586a04061b763f5cf7175eb0c74
parent47e25e59a8ed4c4e64ae58b41c03125c6d3c4104
librbd: journal callback to interrupt replay

If the exclusive lock is lost while the journal is in the
replay state, the journal close will block until the replay
completes. The new callback will facilitate stopping replay
in a timely fashion so that the journal can be closed.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
src/librbd/Journal.cc
src/librbd/Journal.h
src/test/librbd/test_mock_Journal.cc
src/test/rbd_mirror/test_mock_ImageReplayer.cc
src/tools/rbd_mirror/ImageReplayer.cc
src/tools/rbd_mirror/ImageReplayer.h