mirror of https://github.com/ceph/go-ceph
lib: implement WaitForLatestOSDMap
Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
This commit is contained in:
parent
8659a52379
commit
fc036b6edd
11
conn.go
11
conn.go
|
@ -118,3 +118,14 @@ func (c *Conn) SetConfigOption(option, value string) error {
|
|||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
// WaitForLatestOSDMap blocks the caller until the latest OSD map has been
|
||||
// retrieved. It returns an error, if any.
|
||||
func (c *Conn) WaitForLatestOSDMap() error {
|
||||
ret := C.rados_wait_for_latest_osdmap(c.cluster)
|
||||
if ret < 0 {
|
||||
return RadosError(int(ret))
|
||||
} else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue