]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: _exit() intead of exit() for failure injection 12726/head
authorSage Weil <sage@redhat.com>
Fri, 30 Dec 2016 20:42:44 +0000 (15:42 -0500)
committerSage Weil <sage@redhat.com>
Fri, 30 Dec 2016 20:42:44 +0000 (15:42 -0500)
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 <sage@redhat.com>
src/osd/OSD.cc

index 70f39fde5b49951609185248042d771f9b4a8e90..3906fe22149a1c245419352fd1ba874c366a49ec 100644 (file)
@@ -4785,7 +4785,7 @@ void OSD::RemoveWQ::_process(
 
   if (cct->_conf->osd_inject_failure_on_pg_removal) {
     generic_derr << "osd_inject_failure_on_pg_removal" << dendl;
-    exit(1);
+    _exit(1);
   }
   t.remove_collection(coll);