// InstanceId returns the instance ID of the current connection. func (cluster *Cluster) InstanceId() uint64 { return uint64(C.rados_get_instance_id(cluster.handle)) }
// 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)) }
func (r *Rados) ClusterGetInstanceId() uint64 { instance_id := C.rados_get_instance_id(*r.cluster) return uint64(instance_id) }