]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rbd-mirror: utilize get mirror info within prepare local image request
authorJason Dillaman <dillaman@redhat.com>
Mon, 27 Jan 2020 15:41:40 +0000 (10:41 -0500)
committerJason Dillaman <dillaman@redhat.com>
Thu, 30 Jan 2020 15:26:36 +0000 (10:26 -0500)
commit7e3a1a9179207cde4006eacd621f0a62a6ceecc5
tree4133f0067ce112423e64a6d5d29f9163fe4d78a1
parent54efc8fc8d9ca301260d40c7adf67dfc665188a7
rbd-mirror: utilize get mirror info within prepare local image request

This avoids lots of duplicated logic between the two state machines and
provides a path to support both journal and snapshot-based mirroring
with the same class.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
src/test/rbd_mirror/image_replayer/test_mock_PrepareLocalImageRequest.cc
src/tools/rbd_mirror/image_replayer/PrepareLocalImageRequest.cc
src/tools/rbd_mirror/image_replayer/PrepareLocalImageRequest.h