]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
librbd: refresh image after creating primary mirror snapshot
authorJason Dillaman <dillaman@redhat.com>
Thu, 27 Feb 2020 19:52:06 +0000 (14:52 -0500)
committerJason Dillaman <dillaman@redhat.com>
Mon, 2 Mar 2020 15:53:44 +0000 (10:53 -0500)
commitbcb7d6698bba0906f35199b55808944f98119df3
tree3bd87b7892c49bd7864670bdaaad4de74460bbf2
parent25c2ffe145becf6e32dd88682673f9761ee62fa8
librbd: refresh image after creating primary mirror snapshot

If RPC was used to create the snapshot, the local image context will
not yet have the snapshot id and will therefore return CEPH_NOSNAP.

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