]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
librados: drop reference to completion in container destructor
authorYehuda Sadeh <yehuda@inktank.com>
Thu, 3 Oct 2013 18:49:33 +0000 (11:49 -0700)
committerYehuda Sadeh <yehuda@inktank.com>
Fri, 11 Oct 2013 21:53:25 +0000 (14:53 -0700)
commit7ef5eb06ec07d4e7c3fee4d85de8a8310f7ed94f
treed31c6d490f959f23cb122b3f74c3d4bb47d7d3c8
parentb032931dc760f2a9baa7879f422caf8d9281e6c4
librados: drop reference to completion in container destructor

Move the PoolAsyncCompletionImpl reference drop from
C_PoolAsync_Safe::finish() to ~C_PoolAsyncSafe(), as finish() is only
called when the async request is actually sent.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
src/librados/PoolAsyncCompletionImpl.h