Exemplo n.º 1
0
// InstanceId returns the instance ID of the current connection.
func (cluster *Cluster) InstanceId() uint64 {
	return uint64(C.rados_get_instance_id(cluster.handle))
}
Exemplo n.º 2
0
// GetInstanceID returns a globally unique identifier for the cluster
// connection instance.
func (c *Conn) GetInstanceID() uint64 {
	// FIXME: are there any error cases for this?
	return uint64(C.rados_get_instance_id(c.cluster))
}
Exemplo n.º 3
0
func (r *Rados) ClusterGetInstanceId() uint64 {
	instance_id := C.rados_get_instance_id(*r.cluster)
	return uint64(instance_id)
}