librados: Add missing rados_wait_for_latest_osdmap()

Signed-off-by: David Zafman <david.zafman@inktank.com>
This commit is contained in:
David Zafman 2014-03-27 15:10:38 -07:00
parent 87b08b23c3
commit 2d7da1d5c0
2 changed files with 14 additions and 0 deletions

View File

@ -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
*

View File

@ -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;