示例#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
文件: ioctx.go 项目: mittalms/go-ceph
// 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)
}