]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph-fuse.cc: While starting ceph-fuse, start the log thread first 6395/head
authorwenjunhuang <wenjunhuang@tencent.com>
Sat, 10 Oct 2015 06:30:56 +0000 (14:30 +0800)
committerNathan Cutler <ncutler@suse.com>
Tue, 27 Oct 2015 14:30:24 +0000 (15:30 +0100)
http://tracker.ceph.com/issues/13443 Fixes: #13443

Signed-off-by: Wenjun Huang <wenjunhuang@tencent.com>
(cherry picked from commit f2763085754462610730a23bb5652237714abc2a)

src/ceph_fuse.cc

index 9a00c290fb04698dbf7db68d768b2048b88db8df..6f130e5e5363dbe2e55f149085476fe3ac5c1647 100644 (file)
@@ -103,14 +103,13 @@ int main(int argc, const char **argv, const char *envp[]) {
   }
 
   if (childpid == 0) {
+    if (restart_log)
+      g_ceph_context->_log->start();
     common_init_finish(g_ceph_context);
 
     //cout << "child, mounting" << std::endl;
     ::close(fd[0]);
 
-    if (restart_log)
-      g_ceph_context->_log->start();
-
     class RemountTest : public Thread {
     public:
       CephFuse *cfuse;