]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
librbd: only create new mirror image state records for primary mirror snapshots
authorJason Dillaman <dillaman@redhat.com>
Fri, 21 Feb 2020 18:45:53 +0000 (13:45 -0500)
committerJason Dillaman <dillaman@redhat.com>
Fri, 21 Feb 2020 18:45:53 +0000 (13:45 -0500)
commit406c699fb7a618d77c4d1bf1be2ca4e6315ee8a0
treefa315845a66f876ca4e6b34252f962e33569f554
parent64ea8090ea1914a1cf80a93ad9229bca14bfd730
librbd: only create new mirror image state records for primary mirror snapshots

The consolidation of primary and non-primary mirror snapshot namespaces
resulted in the creation of image state records for non-primary snapshots.
This was resulting in non-primary snapshots being prematurely marked as
complete.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
src/librbd/operation/SnapshotCreateRequest.cc
src/test/librbd/operation/test_mock_SnapshotCreateRequest.cc