From: wenjunhuang Date: Sat, 10 Oct 2015 06:30:56 +0000 (+0800) Subject: ceph-fuse.cc: While starting ceph-fuse, start the log thread first X-Git-Tag: v9.2.1~38^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=34d0b692cf1b9c0c2ea508b81d252b901fe1f52b;p=ceph.git ceph-fuse.cc: While starting ceph-fuse, start the log thread first http://tracker.ceph.com/issues/13443 Fixes: #13443 Signed-off-by: Wenjun Huang (cherry picked from commit f2763085754462610730a23bb5652237714abc2a) --- diff --git a/src/ceph_fuse.cc b/src/ceph_fuse.cc index 9a00c290fb046..6f130e5e5363d 100644 --- a/src/ceph_fuse.cc +++ b/src/ceph_fuse.cc @@ -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;