diff --git a/src/librados/RadosClient.cc b/src/librados/RadosClient.cc index efbd6b563fb..06436be1835 100644 --- a/src/librados/RadosClient.cc +++ b/src/librados/RadosClient.cc @@ -237,8 +237,6 @@ int librados::RadosClient::ping_monitor(const string mon_id, string *result) int librados::RadosClient::connect() { - common_init_finish(cct); - int err; // already connected? @@ -255,6 +253,8 @@ int librados::RadosClient::connect() return err; } + common_init_finish(cct); + // get monmap err = monclient.build_initial_monmap(); if (err < 0)