]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
librbd: always refresh after creating snapshot in CreatePrimaryRequest scrub_incomplete
authorIlya Dryomov <idryomov@gmail.com>
Mon, 17 Apr 2023 21:31:37 +0000 (23:31 +0200)
committerPrasanna Kumar Kalever <prasanna.kalever@redhat.com>
Tue, 18 Apr 2023 15:06:56 +0000 (20:36 +0530)
commit43f439109fe6902094b1663995b424aa12902ddd
tree5fc20422b5108f383ab835abe4713f061758249b
parent0097e73d564a8fb3c4ba2ba49ec3509bd71ca796
librbd: always refresh after creating snapshot in CreatePrimaryRequest

Up until now this was conditioned on whether the caller expressed
interest in the ID of the created snapshot and happened to work only
because CreatePrimaryRequest wasn't actually consulting any mirror
snapshot metadata.  This has just changed with unlink_peer() needing to
see an up-to-date complete flag which is set in SetImageStateRequest
following the write out of image state object(s).

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Signed-off-by: Prasanna Kumar Kalever <prasanna.kalever@redhat.com>
src/librbd/mirror/snapshot/CreatePrimaryRequest.cc