From: Brad Hubbard Date: Mon, 29 May 2017 00:58:39 +0000 (+1000) Subject: osd: Return early on shutdown X-Git-Tag: v12.1.0~57^2~13^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F15345%2Fhead;p=ceph.git osd: Return early on shutdown eb5c02d was missing a return statement, rectify that. Fixes: http://tracker.ceph.com/issues/19900 Signed-off-by: Brad Hubbard --- diff --git a/src/osd/OSD.cc b/src/osd/OSD.cc index 4a1e92c92e04..75b7c0c5667f 100644 --- a/src/osd/OSD.cc +++ b/src/osd/OSD.cc @@ -6735,8 +6735,10 @@ bool OSD::ms_get_authorizer(int dest_type, AuthAuthorizer **authorizer, bool for { dout(10) << "OSD::ms_get_authorizer type=" << ceph_entity_type_name(dest_type) << dendl; - if (is_stopping()) + if (is_stopping()) { dout(10) << __func__ << " bailing, we are shutting down" << dendl; + return false; + } if (dest_type == CEPH_ENTITY_TYPE_MON) return true;