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