From 46f4285c90b675a9f70da745365ddeabcaa7a191 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Fri, 30 Dec 2016 15:42:44 -0500 Subject: [PATCH] osd: _exit() intead of exit() for failure injection This avoids a segv from code that doesn't easily shut down (e.g., bluestore). Fixes: http://tracker.ceph.com/issues/18372 Signed-off-by: Sage Weil (cherry picked from commit c2fac9c9a92a63b9a456c9e301c4b393de096a97) --- src/osd/OSD.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/osd/OSD.cc b/src/osd/OSD.cc index e379263040699..3b62ef3755b80 100644 --- a/src/osd/OSD.cc +++ b/src/osd/OSD.cc @@ -4791,7 +4791,7 @@ void OSD::RemoveWQ::_process( if (g_conf->osd_inject_failure_on_pg_removal) { generic_derr << "osd_inject_failure_on_pg_removal" << dendl; - exit(1); + _exit(1); } t.remove_collection(coll); -- 2.39.5