]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
rbd-mirror: image deleter should support snapshot-based mirroring
authorJason Dillaman <dillaman@redhat.com>
Wed, 29 Jan 2020 01:37:44 +0000 (20:37 -0500)
committerJason Dillaman <dillaman@redhat.com>
Thu, 30 Jan 2020 15:26:36 +0000 (10:26 -0500)
commit57084cb3da1c3de5101c0e13efa6c64dff0fb60d
tree7d7fec5603e5138026d71ae1576f55919be9f61c
parent573ace2304026276abf1ce11c1d28c6316864bf8
rbd-mirror: image deleter should support snapshot-based mirroring

Read the current mirror info from the local image instead of directly
reading from the journal. The image needs to be opened before potentially
resetting the journal since journaling might not be enabled.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
src/test/rbd_mirror/image_deleter/test_mock_TrashMoveRequest.cc
src/tools/rbd_mirror/ImageDeleter.cc
src/tools/rbd_mirror/image_deleter/TrashMoveRequest.cc
src/tools/rbd_mirror/image_deleter/TrashMoveRequest.h
src/tools/rbd_mirror/image_deleter/TrashRemoveRequest.cc