]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
Merge pull request #7830 from yuyuyu101/wip-14907
authorJason Dillaman <dillaman@redhat.com>
Fri, 29 Apr 2016 13:39:34 +0000 (08:39 -0500)
committerJason Dillaman <dillaman@redhat.com>
Fri, 29 Apr 2016 13:39:34 +0000 (08:39 -0500)
IoCtxImpl: delete C_WatchCB2 when free LingerOp

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
1  2 
src/librados/IoCtxImpl.cc
src/librados/IoCtxImpl.h
src/librados/librados.cc

index 3880e159ab98e545c325ec70ba2020caefd39ca1,229b47b4466d1b625ca8e7a40a9b95e30c72b79d..6180f6711b1a7f9122df092a57db856bba3168bd
@@@ -1461,8 -1314,10 +1468,8 @@@ int librados::IoCtxImpl::aio_watch(cons
    Context *oncomplete = new C_aio_linger_Complete(c, linger_op, false);
  
    ::ObjectOperation wr;
 -  version_t objver;
 -
    *handle = linger_op->get_cookie();
-   linger_op->watch_context = new WatchInfo(this, oid, ctx, ctx2);
+   linger_op->watch_context = new WatchInfo(this, oid, ctx, ctx2, internal);
  
    prepare_assert_ops(&wr);
    wr.watch(*handle, CEPH_OSD_WATCH_OP_WATCH);
Simple merge
Simple merge