Пример #1
0
// 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
}
Пример #2
0
// 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)
}
Пример #3
0
func (rc *RadosCluster) Close() (err error) {
	C.rados_ioctx_destroy(rc.Ioctx)
	return nil
}
Пример #4
0
func freePool(pool *Pool) {
	C.rados_ioctx_destroy(pool.ioctx)
	C.rados_shutdown(pool.cluster)
}
Пример #5
0
func (p *Pool) Destroy() {
	C.rados_ioctx_destroy(p.ioctx)
}
Пример #6
0
// CloseNow this pool context immediately.
func (pool *Pool) Close() {
	C.rados_ioctx_destroy(pool.context)
}
Пример #7
0
func (r *RadosIoCtx) Destroy() {
	C.rados_ioctx_destroy(*r.ctx)
}