]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rbd-mirror: update snapshot mirror image state after snapshot creation
authorJason Dillaman <dillaman@redhat.com>
Thu, 11 Feb 2021 20:23:56 +0000 (15:23 -0500)
committerJason Dillaman <dillaman@redhat.com>
Tue, 9 Mar 2021 21:52:14 +0000 (16:52 -0500)
commit4d53e0d8f95ef7143347538481252f34636c0548
treefb625cd04f89cefd2d854f4f0730b6178bb8105f
parent1ff7d244fcbc15312e010f47e19e0e96c819755d
rbd-mirror: update snapshot mirror image state after snapshot creation

The non-primary mirror snapshot is what is used to link the non-primary
to the primary image. If there is an interruption between creating the
non-primary image and the creation of the first non-primary snapshot,
the images will be considerered unlinked.

A future commit will modify librbd to avoid setting the mirror image
state to enabled for non-primary snapshot-based mirroring images.
rbd-mirror will already automatically delete images in the CREATING
state during the bootstrap phase.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
(cherry picked from commit c9378ab8293e531a49970a01becd9762cf1f8f80)
src/test/rbd_mirror/image_replayer/snapshot/test_mock_Replayer.cc
src/tools/rbd_mirror/image_replayer/snapshot/Replayer.cc
src/tools/rbd_mirror/image_replayer/snapshot/Replayer.h