]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
librados: remove IoCtx::close()
authorColin Patrick McCabe <cmccabe@alumni.cmu.edu>
Tue, 1 Mar 2011 11:25:18 +0000 (03:25 -0800)
committerJosh Durgin <josh.durgin@dreamhost.com>
Fri, 4 Mar 2011 00:03:46 +0000 (16:03 -0800)
We decided we don't want IoCtx::close(), since IoCtx::~IoCtx() exists.

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
src/include/rados/librados.hpp
src/librados.cc

index bec1e9e5cf5f49f8138195e33621f47352cbd823..931f67194c43183077cc743fbf3c7827a0532570 100644 (file)
@@ -105,7 +105,6 @@ namespace librados
 
     // Close our pool handle
     ~IoCtx();
-    void close();
 
     // set pool auid
     int set_auid(uint64_t auid_);
index 8b2d611e32ec03e79260e1c8d61cbc6d1042a22e..724d5bdb10ea2f8767f37fab24fb9b624562c1d8 100644 (file)
@@ -2007,12 +2007,6 @@ from_rados_ioctx_t(rados_ioctx_t p, IoCtx &io)
 
 librados::IoCtx::
 ~IoCtx()
-{
-  close();
-}
-
-void librados::IoCtx::
-close()
 {
   delete io_ctx_impl;
   io_ctx_impl = 0;