// WaitForLatestOSDMap blocks the caller until the latest OSD map has been // retrieved. func (c *Conn) WaitForLatestOSDMap() error { ret := C.rados_wait_for_latest_osdmap(c.cluster) if ret < 0 { return RadosError(int(ret)) } else { return nil } }
// WaitForLatestOsdMap blocks until the latest OSD Map is ready func (cluster *Cluster) WaitForLatestOsdMap() error { ret := C.rados_wait_for_latest_osdmap(cluster.handle) if err := toRadosError(ret); err != nil { err.Message = "Unable to wait for OSD Map" return err } return nil }