From ae6e32dc4b93eb0dd41a19991f297d1a5ca5f653 Mon Sep 17 00:00:00 2001 From: Brad Hubbard Date: Mon, 29 May 2017 10:58:39 +1000 Subject: [PATCH] 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 --- src/osd/OSD.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; -- 2.47.3