コード例 #1
0
ファイル: context.go プロジェクト: glycerine/radosgo
// 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
ファイル: rados.go プロジェクト: thiagodasilva/gorados
func (rc *RadosCluster) Close() (err error) {
	C.rados_ioctx_destroy(rc.Ioctx)
	return nil
}
コード例 #4
0
ファイル: internals.go プロジェクト: yp-engineering/librbd
func freePool(pool *Pool) {
	C.rados_ioctx_destroy(pool.ioctx)
	C.rados_shutdown(pool.cluster)
}
コード例 #5
0
ファイル: pool.go プロジェクト: wenjianhn/radoshttpd
func (p *Pool) Destroy() {
	C.rados_ioctx_destroy(p.ioctx)
}
コード例 #6
0
ファイル: pools.go プロジェクト: objStorage/grados
// CloseNow this pool context immediately.
func (pool *Pool) Close() {
	C.rados_ioctx_destroy(pool.context)
}
コード例 #7
0
ファイル: rados_io.go プロジェクト: vuleetu/gorados
func (r *RadosIoCtx) Destroy() {
	C.rados_ioctx_destroy(*r.ctx)
}