]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
rbd-mirror: store remote promotion state within state builder
authorJason Dillaman <dillaman@redhat.com>
Mon, 27 Jan 2020 17:43:51 +0000 (12:43 -0500)
committerJason Dillaman <dillaman@redhat.com>
Thu, 30 Jan 2020 15:26:36 +0000 (10:26 -0500)
commit43ef7a498bc8606ba6e59643497b0dabef478416
tree6cf5d8be5931cf960e7057c65666218ce826a454
parent2974ea609e23dc99e4a1954abb14dc8b52834410
rbd-mirror: store remote promotion state within state builder

This simplifies the factory method for the prepare state since it
no longer needs to be an parameter. It will also permit the removal
of the extra get mirror info call in bootstrap.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
src/test/rbd_mirror/image_replayer/test_mock_BootstrapRequest.cc
src/test/rbd_mirror/image_replayer/test_mock_PrepareRemoteImageRequest.cc
src/tools/rbd_mirror/image_replayer/BootstrapRequest.cc
src/tools/rbd_mirror/image_replayer/PrepareRemoteImageRequest.cc
src/tools/rbd_mirror/image_replayer/StateBuilder.h
src/tools/rbd_mirror/image_replayer/journal/StateBuilder.cc
src/tools/rbd_mirror/image_replayer/journal/StateBuilder.h
src/tools/rbd_mirror/image_replayer/snapshot/StateBuilder.cc
src/tools/rbd_mirror/image_replayer/snapshot/StateBuilder.h