// Release this RADOS IO context. // // TODO: track all uncompleted async operations before calling // rados_ioctx_destroy(), because it doesn't do that itself. func (c *Context) Release() error { C.rados_ioctx_destroy(c.ctx) return nil }
// Destroy informs librados that the I/O context is no longer in use. // Resources associated with the context may not be freed immediately, and the // context should not be used again after calling this method. func (ioctx *IOContext) Destroy() { C.rados_ioctx_destroy(ioctx.ioctx) }
func (rc *RadosCluster) Close() (err error) { C.rados_ioctx_destroy(rc.Ioctx) return nil }
func freePool(pool *Pool) { C.rados_ioctx_destroy(pool.ioctx) C.rados_shutdown(pool.cluster) }
func (p *Pool) Destroy() { C.rados_ioctx_destroy(p.ioctx) }
// CloseNow this pool context immediately. func (pool *Pool) Close() { C.rados_ioctx_destroy(pool.context) }
func (r *RadosIoCtx) Destroy() { C.rados_ioctx_destroy(*r.ctx) }