]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
rbd-mirror: consolidate prepare local/remote image steps to bootstrap
authorJason Dillaman <dillaman@redhat.com>
Sat, 21 Dec 2019 20:27:45 +0000 (15:27 -0500)
committerJason Dillaman <dillaman@redhat.com>
Sun, 22 Dec 2019 17:51:12 +0000 (12:51 -0500)
commit2bca9ee96c655fb7d40e5b569a2ca17d6fc99d70
tree53b1cd42262538ada0ce0091dd7ec7ac8a251abb
parentda622284673af895d0c3bfc871f1d8dd9eba8dfb
rbd-mirror: consolidate prepare local/remote image steps to bootstrap

Now that the bootstrap state machine is simplier, it makes it cleaner to
move the prepare steps into the bootstrap state machine. Once snapshot
mirror support is added, these prepare state can be swapped out depending
on the mirroring type.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
src/test/rbd_mirror/image_replayer/test_mock_BootstrapRequest.cc
src/test/rbd_mirror/test_mock_ImageReplayer.cc
src/tools/rbd_mirror/ImageReplayer.cc
src/tools/rbd_mirror/ImageReplayer.h
src/tools/rbd_mirror/image_replayer/BootstrapRequest.cc
src/tools/rbd_mirror/image_replayer/BootstrapRequest.h
src/tools/rbd_mirror/image_replayer/PrepareLocalImageRequest.cc
src/tools/rbd_mirror/image_replayer/PrepareRemoteImageRequest.cc