]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
librbd: moved snap_create header update notification to initiator 4292/head
authorJason Dillaman <dillaman@redhat.com>
Tue, 7 Apr 2015 19:39:13 +0000 (15:39 -0400)
committerJason Dillaman <dillaman@redhat.com>
Tue, 7 Apr 2015 20:12:01 +0000 (16:12 -0400)
commit6e20ed6834912ccd979d16e3f3b340c239e05288
treed1124349c774d461722657d49c9f9e4ce052d0f1
parent1c381b3ca8a6575099c0f4711eacf1b3850e4b85
librbd: moved snap_create header update notification to initiator

When handling a proxied snap_create operation, the client which
invoked the snap_create should send the header update notification
to avoid a possible race condition where snap_create completes but
the client doesn't see the new snapshot (since it didn't yet receive
the notification).

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