]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
librbd/mirror: leave non-primary snapshot images in creating state 39432/head
authorJason Dillaman <dillaman@redhat.com>
Thu, 11 Feb 2021 20:54:01 +0000 (15:54 -0500)
committerJason Dillaman <dillaman@redhat.com>
Fri, 19 Feb 2021 15:46:17 +0000 (10:46 -0500)
commit43f2c208fa3042d93e4810d804ffe28e9ca7af77
tree3850ba22304d7694b135f0387624dfa7916a7494
parentecd3778a6f9a6ca33aebbf47cef79db5f04157a9
librbd/mirror: leave non-primary snapshot images in creating state

The creating state is a special case in rbd-mirror where it will
automatically delete the image since it assumes it's malformed.
A non-primary, snapshot-based mirror image needs to have at least
one non-primary snapshot and the first one is not created until
after replay has started. Now rbd-mirror will update the mirror
image state to the enabled state after creating the first
non-primary snapshot but before attempting the sync.

Fixes: https://tracker.ceph.com/issues/49238
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
src/librbd/mirror/EnableRequest.cc
src/librbd/mirror/EnableRequest.h