From: Kefu Chai Date: Wed, 23 Nov 2016 11:45:57 +0000 (+0800) Subject: crushtool: do not release g_ceph_context at exit X-Git-Tag: v11.1.0~158^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=d305cc51b18cbf4b2757bbacb5d43324461306a9;p=ceph-ci.git crushtool: do not release g_ceph_context at exit it is but a work around of occasionally timeout. Signed-off-by: Kefu Chai --- diff --git a/src/tools/crushtool.cc b/src/tools/crushtool.cc index 19b970aed1a..1510bc84386 100644 --- a/src/tools/crushtool.cc +++ b/src/tools/crushtool.cc @@ -274,6 +274,9 @@ int main(int argc, const char **argv) auto cct = global_init(NULL, env_args, CEPH_ENTITY_TYPE_CLIENT, CODE_ENVIRONMENT_UTILITY, CINIT_FLAG_NO_DEFAULT_CONFIG_FILE); + // crushtool times out occasionally when quits. so do not + // release the g_ceph_context. + cct->get(); common_init_finish(g_ceph_context); int x;