]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
librbd: improved ImageWatcher duplicate message detection 3758/head
authorJason Dillaman <dillaman@redhat.com>
Thu, 19 Feb 2015 19:43:15 +0000 (14:43 -0500)
committerJason Dillaman <dillaman@redhat.com>
Mon, 23 Feb 2015 16:07:53 +0000 (11:07 -0500)
commit69b3857924c3900da1b9b7ca2e80410aaec351b7
tree7346f6cd78c83a0e3060ea5ab2b28b7014beeddd
parent942f875135ac34d6df06ff0c4d1c244e77eab2c4
librbd: improved ImageWatcher duplicate message detection

Added a unique client id to announcement messages so that duplicate
lock release / acquired / requested messages can be detected and
ignored by the client.  Also fixed an issue processing the result
code for async operations.

Fixes: #10898
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
src/librbd/ImageWatcher.cc
src/librbd/ImageWatcher.h
src/librbd/WatchNotifyTypes.cc
src/librbd/WatchNotifyTypes.h
src/test/librbd/test_ImageWatcher.cc