]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rbd-mirror: initial snapshot-based mirroring replayer logic
authorJason Dillaman <dillaman@redhat.com>
Thu, 6 Feb 2020 18:25:33 +0000 (13:25 -0500)
committerJason Dillaman <dillaman@redhat.com>
Wed, 19 Feb 2020 15:36:40 +0000 (10:36 -0500)
commite4cb7e4d78bcfc3cc96eea5313c101044013cb7b
tree0c011b061b505578cf2ed2725c4fab122d19444e
parent0c4e9a21da012cac3d73d5e021de03a74e28f3f9
rbd-mirror: initial snapshot-based mirroring replayer logic

This initial implementation will scan the remote image for new mirror
snapshots. If a new primary snapshot it detected, it will start syncing
it. If the remote was demoted, it will notify the image replayer to
shut down. If an in-progress sync was previously interrupted, it will
attempt to restart it.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
src/cls/rbd/cls_rbd_types.h
src/test/rbd_mirror/CMakeLists.txt
src/test/rbd_mirror/image_replayer/snapshot/test_mock_Replayer.cc [new file with mode: 0644]
src/test/rbd_mirror/test_ImageReplayer.cc
src/tools/rbd_mirror/image_replayer/snapshot/Replayer.cc
src/tools/rbd_mirror/image_replayer/snapshot/Replayer.h