]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
librados: add infrastructure to deliver an error notification
authorSage Weil <sage@redhat.com>
Fri, 17 Oct 2014 03:11:43 +0000 (20:11 -0700)
committerSage Weil <sage@redhat.com>
Thu, 4 Dec 2014 18:32:38 +0000 (10:32 -0800)
commit22572a39777be12661750147fd2828223f178ac6
tree8b51cbdcd4f5d4f1331b6fc36d809345e21d0046
parentc973c93f3fa23a2b5d9171c2db3d45a03c0e1cb9
librados: add infrastructure to deliver an error notification

Use a reusable context in the WatchNotifyInfo to trigger an error
event, delivered via the existing Finisher thread.  Re-lookup the cookie
in the thread to cope with races with unregister (just as we do with
notify events).

Signed-off-by: Sage Weil <sage@redhat.com>
src/librados/IoCtxImpl.h
src/librados/RadosClient.cc
src/librados/RadosClient.h