]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
librados: add rados_watch_flush() call
authorSage Weil <sage@redhat.com>
Fri, 19 Dec 2014 19:48:27 +0000 (11:48 -0800)
committerSage Weil <sage@redhat.com>
Tue, 23 Dec 2014 01:41:28 +0000 (17:41 -0800)
commit7de1b4d4ff624feffa5da27c884bb4863828e2dd
treed92c1663caf9a03183843e259204ea2921a9fc0f
parent5cf4483cc41904b8c08e4dc4e4cc2bba210ca184
librados: add rados_watch_flush() call

Add a call so that callers can make sure all queued callbacks have
completed before shutting down the ioctx.  This avoids a segv triggered
by the LibRadosWatchNotifyPPTests/LibRadosWatchNotifyPP.WatchNotify2Timeout/1
test due to the ioctx being destroyed when the in-progress callback
does a notify_ack.

Signed-off-by: Sage Weil <sage@redhat.com>
(cherry picked from commit 4ebd4b4280cb048547842351f41b38658fb21a6e)
src/include/rados/librados.h
src/include/rados/librados.hpp
src/librados/RadosClient.cc
src/librados/RadosClient.h
src/librados/librados.cc
src/osdc/Objecter.cc
src/osdc/Objecter.h
src/test/librados/watch_notify.cc
src/tracing/librados.tp