]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
librados: do not clear handle for aio_watch()
authorxie xingguo <xie.xingguo@zte.com.cn>
Wed, 24 Feb 2016 08:56:23 +0000 (16:56 +0800)
committerxie xingguo <xie.xingguo@zte.com.cn>
Wed, 24 Feb 2016 08:56:23 +0000 (16:56 +0800)
which is needed for aio_unwatch() to work.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
src/librados/IoCtxImpl.cc

index 5677f228f0702a13cc9c5ca3e16d9cb5604fe2f6..e5a744f01d00b3e97deff7744e0cabdcd9886850 100644 (file)
@@ -1278,7 +1278,6 @@ int librados::IoCtxImpl::aio_watch(const object_t& oid,
 
   prepare_assert_ops(&wr);
   wr.watch(*handle, CEPH_OSD_WATCH_OP_WATCH);
-  *handle = 0;
   bufferlist bl;
   objecter->linger_watch(linger_op, wr,
                          snapc, ceph::real_clock::now(), bl,