Esempio n. 1
0
// Shutdown disconnects from the cluster.
func (c *Conn) Shutdown() {
	C.rados_shutdown(c.cluster)
}
Esempio n. 2
0
// Shutdown will close the connection to the cluster.
func (cluster *Cluster) Shutdown() {
	C.rados_shutdown(cluster.handle)
}
Esempio n. 3
0
func freePool(pool *Pool) {
	C.rados_ioctx_destroy(pool.ioctx)
	C.rados_shutdown(pool.cluster)
}
Esempio n. 4
0
// 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
}
Esempio n. 5
0
func (r *Rados) ClusterShutDown() {
	C.rados_shutdown(*r.cluster)
}