From: redickwang Date: Tue, 17 Jul 2018 09:48:24 +0000 (+0800) Subject: osd: ceph-osd parent process need to restart log service after fork, or ceph-osd... X-Git-Tag: v14.1.0~1132^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=d40d8a7f0d6ca1f8d17fff79afff76a55830e406;p=ceph.git osd: ceph-osd parent process need to restart log service after fork, or ceph-osd will not work correctly when the option log_max_new in ceph.conf set to zero Signed-off-by: redickwang --- diff --git a/src/ceph_osd.cc b/src/ceph_osd.cc index 86c5e7aea4b8..32c391b802d3 100644 --- a/src/ceph_osd.cc +++ b/src/ceph_osd.cc @@ -195,6 +195,7 @@ int main(int argc, const char **argv) return r; } if (forker.is_parent()) { + g_ceph_context->_log->start(); if (forker.parent_wait(err) != 0) { return -ENXIO; }