]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
librados: drop io_ctx_impl on ioctx_create/create2
authorVenky Shankar <vshankar@redhat.com>
Wed, 9 Nov 2016 11:28:06 +0000 (16:58 +0530)
committerVenky Shankar <vshankar@redhat.com>
Sun, 20 Nov 2016 15:51:50 +0000 (21:21 +0530)
commitcce335fccfb5d9d9d211ad58d6d9cdfbb5f44e76
tree9ff2d646b3ab7f9aea2126b65fe71f7d7f32444e
parent49bc71bacf2e932fa6f15db3e631f955e2409262
librados: drop io_ctx_impl on ioctx_create/create2

close() was never called for the passed in IoCtx which
could probably result in an IoCtx leak if the original
IoCtx was a valid pool context allocated earlier.

Its kind of better to do it here rather than to leave
the destruction on the caller for better (or cleaner)
common case handling.

Signed-off-by: Venky Shankar <vshankar@redhat.com>
src/librados/librados.cc
src/test/librados_test_stub/LibradosTestStub.cc