mirror of
https://github.com/ceph/ceph
synced 2025-02-20 09:27:35 +00:00
librados: bump minor version number
rados_create_internal -> rados_create_with_config Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
This commit is contained in:
parent
624410fbc1
commit
87e4aa2395
@ -16,7 +16,7 @@ extern "C" {
|
||||
#endif
|
||||
|
||||
#define LIBRADOS_VER_MAJOR 0
|
||||
#define LIBRADOS_VER_MINOR 26
|
||||
#define LIBRADOS_VER_MINOR 27
|
||||
#define LIBRADOS_VER_EXTRA 0
|
||||
|
||||
#define LIBRADOS_VERSION(maj, min, extra) ((maj << 16) + (min << 8) + extra)
|
||||
@ -54,8 +54,8 @@ void rados_version(int *major, int *minor, int *extra);
|
||||
/* initialization */
|
||||
int rados_create(rados_t *cluster, const char * const id);
|
||||
|
||||
/* internal API for creating rados clusters */
|
||||
int rados_create_internal(rados_t *cluster, struct md_config_t *conf);
|
||||
/* initialize rados with an existing configuration. */
|
||||
int rados_create_with_config(rados_t *cluster, struct md_config_t *conf);
|
||||
|
||||
/* Connect to the cluster */
|
||||
int rados_connect(rados_t cluster);
|
||||
|
@ -211,7 +211,7 @@ namespace librados
|
||||
~Rados();
|
||||
|
||||
int init(const char * const id);
|
||||
int init_internal(md_config_t * conf);
|
||||
int init_with_config(md_config_t * conf);
|
||||
int connect();
|
||||
void shutdown();
|
||||
int conf_read_file(const char * const path) const;
|
||||
|
@ -2445,9 +2445,9 @@ init(const char * const id)
|
||||
}
|
||||
|
||||
int librados::Rados::
|
||||
init_internal(md_config_t *conf)
|
||||
init_with_config(md_config_t *conf)
|
||||
{
|
||||
return rados_create_internal((rados_t *)&client, conf);
|
||||
return rados_create_with_config((rados_t *)&client, conf);
|
||||
}
|
||||
|
||||
int librados::Rados::
|
||||
@ -2628,7 +2628,7 @@ extern "C" int rados_create(rados_t *pcluster, const char * const id)
|
||||
* already called common_init and want to use that particular configuration for
|
||||
* their cluster.
|
||||
*/
|
||||
extern "C" int rados_create_internal(rados_t *pcluster, md_config_t *conf)
|
||||
extern "C" int rados_create_with_config(rados_t *pcluster, md_config_t *conf)
|
||||
{
|
||||
rados_init_mutex.Lock();
|
||||
if (!rados_initialized) {
|
||||
|
Loading…
Reference in New Issue
Block a user