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 <sage@redhat.com>
This commit is contained in:
Sage Weil 2016-12-30 15:42:44 -05:00
parent 68bf649dd2
commit c2fac9c9a9

View 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);