예제 #1
0
파일: conn.go 프로젝트: Xmagicer/origin
// Shutdown disconnects from the cluster.
func (c *Conn) Shutdown() {
	C.rados_shutdown(c.cluster)
}
예제 #2
0
파일: grados.go 프로젝트: objStorage/grados
// Shutdown will close the connection to the cluster.
func (cluster *Cluster) Shutdown() {
	C.rados_shutdown(cluster.handle)
}
예제 #3
0
func freePool(pool *Pool) {
	C.rados_ioctx_destroy(pool.ioctx)
	C.rados_shutdown(pool.cluster)
}
예제 #4
0
파일: rados.go 프로젝트: glycerine/radosgo
// Release handle and disconnect from RADOS cluster.
//
// TODO: track all open ioctx, ensure all async operations have
// completed before calling rados_shutdown, because it doesn't do that
// itself.
func (r *Rados) Release() error {
	C.rados_shutdown(r.rados)

	return nil
}
예제 #5
0
func (r *Rados) ClusterShutDown() {
	C.rados_shutdown(*r.cluster)
}