]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rbd-mirror: prepare local image shouldn't abort if image does not exist
authorJason Dillaman <dillaman@redhat.com>
Thu, 27 Feb 2020 01:18:57 +0000 (20:18 -0500)
committerJason Dillaman <dillaman@redhat.com>
Thu, 27 Feb 2020 21:33:21 +0000 (16:33 -0500)
commita895eb4b0f8d9a89987337e937620349d1ba01af
tree43e53d6c82ba0de4ea6a31feede1e0003bc7034a
parentf2d43a39c336ea04dc3b2dd361580c1554719cc7
rbd-mirror: prepare local image shouldn't abort if image does not exist

If we already have a mirror image record, we should still bootstrap up
using the data we know like the old image id so that we can properly clean
up later.

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