]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: Return early on shutdown 15345/head
authorBrad Hubbard <bhubbard@redhat.com>
Mon, 29 May 2017 00:58:39 +0000 (10:58 +1000)
committerBrad Hubbard <bhubbard@redhat.com>
Mon, 29 May 2017 01:29:23 +0000 (11:29 +1000)
eb5c02d was missing a return statement, rectify that.

Fixes: http://tracker.ceph.com/issues/19900
Signed-off-by: Brad Hubbard <bhubbard@redhat.com>
src/osd/OSD.cc

index 4a1e92c92e042e8eda8ade4e0fc1f7fef8182253..75b7c0c5667f0ce6d26cabfd2d3df1f7cdbacdb7 100644 (file)
@@ -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;