]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
libcephfs: common_init_finish after getting monmap and config
authorSage Weil <sage@redhat.com>
Wed, 3 Apr 2019 19:47:42 +0000 (14:47 -0500)
committerSage Weil <sage@redhat.com>
Wed, 3 Apr 2019 19:47:42 +0000 (14:47 -0500)
This is how librados behaves.

Signed-off-by: Sage Weil <sage@redhat.com>
src/libcephfs.cc

index 5402045a405bec1dfdcc8e3c364cd1d9b7af8b13..6f75b2fff74e2a32fadd5184517d3995683a7d92 100755 (executable)
@@ -77,8 +77,6 @@ public:
 
   int init()
   {
-    common_init_finish(cct);
-
     int ret;
 
     {
@@ -88,6 +86,8 @@ public:
        return ret;
     }
 
+    common_init_finish(cct);
+
     //monmap
     monclient = new MonClient(cct);
     ret = -CEPHFS_ERROR_MON_MAP_BUILD; //defined in libcephfs.h;