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