mirror of
https://github.com/ceph/ceph
synced 2025-01-03 17:42:36 +00:00
librados: Add missing rados_wait_for_latest_osdmap()
Signed-off-by: David Zafman <david.zafman@inktank.com>
This commit is contained in:
parent
87b08b23c3
commit
2d7da1d5c0
@ -521,6 +521,14 @@ int rados_cluster_stat(rados_t cluster, struct rados_cluster_stat_t *result);
|
||||
*/
|
||||
int rados_cluster_fsid(rados_t cluster, char *buf, size_t len);
|
||||
|
||||
/**
|
||||
* Get/wait for the most recent osdmap
|
||||
*
|
||||
* @param cluster the cluster to shutdown
|
||||
* @returns 0 on sucess, negative error code on failure
|
||||
*/
|
||||
int rados_wait_for_latest_osdmap(rados_t cluster);
|
||||
|
||||
/**
|
||||
* @defgroup librados_h_pools Pools
|
||||
*
|
||||
|
@ -2021,6 +2021,12 @@ extern "C" int rados_cluster_fsid(rados_t cluster, char *buf,
|
||||
return fsid.length();
|
||||
}
|
||||
|
||||
extern "C" int rados_wait_for_latest_osdmap(rados_t cluster)
|
||||
{
|
||||
librados::RadosClient *radosp = (librados::RadosClient *)cluster;
|
||||
return radosp->wait_for_latest_osdmap();
|
||||
}
|
||||
|
||||
extern "C" int rados_pool_list(rados_t cluster, char *buf, size_t len)
|
||||
{
|
||||
librados::RadosClient *client = (librados::RadosClient *)cluster;
|
||||
|
Loading…
Reference in New Issue
Block a user