]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
librbd: fixed snap create race conditions 3777/head
authorJason Dillaman <dillaman@redhat.com>
Mon, 23 Feb 2015 17:16:39 +0000 (12:16 -0500)
committerJason Dillaman <dillaman@redhat.com>
Mon, 23 Feb 2015 17:46:33 +0000 (12:46 -0500)
commit63f6c9bac9a437d1315e7bf8295926a33de1a954
tree4dfdb09a0a6a01daecfc554b15ec1e9a2b71d01a
parentda1ed539875fdb76345261fedccc06295d504dbe
librbd: fixed snap create race conditions

Since the post-snap create header update runs asynchrously
in a finalizer callback, it's possible that the snapshot
is not immediately visible.  Also, if a proxied snap create
message is replayed, it's possible for the client to receive
a EEXISTS error.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
src/librbd/ImageWatcher.cc
src/librbd/internal.cc