]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
librbd: delay marking primary mirror snapshot as completed
authorJason Dillaman <dillaman@redhat.com>
Wed, 19 Feb 2020 17:02:09 +0000 (12:02 -0500)
committerJason Dillaman <dillaman@redhat.com>
Wed, 19 Feb 2020 17:02:09 +0000 (12:02 -0500)
commit5f51080f587c35cf9726661d0dc331d9e3075808
tree10f14a67f696700e3d943bc63b610b426b17c885
parent450a13ddc7055cd6092555e13f087f626769ce59
librbd: delay marking primary mirror snapshot as completed

Until the image state object(s) are written, the snapshot should
be considered incomplete and not ready for replay.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
src/librbd/mirror/snapshot/CreatePrimaryRequest.cc
src/librbd/mirror/snapshot/SetImageStateRequest.cc
src/librbd/mirror/snapshot/SetImageStateRequest.h
src/test/librbd/test_mirroring.cc