From 76c5f24863edb02d8977543ecf70523fc0dc490d Mon Sep 17 00:00:00 2001 From: Colin Patrick McCabe Date: Wed, 15 Jun 2011 12:37:36 -0700 Subject: [PATCH] auth: AuthAuthorizeHandler: deglobalize Signed-off-by: Colin McCabe --- src/auth/AuthAuthorizeHandler.cc | 4 ---- src/mds/MDS.cc | 1 + src/osd/OSD.cc | 1 + 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/auth/AuthAuthorizeHandler.cc b/src/auth/AuthAuthorizeHandler.cc index 83a5557368693..9234d6aef5c94 100644 --- a/src/auth/AuthAuthorizeHandler.cc +++ b/src/auth/AuthAuthorizeHandler.cc @@ -17,7 +17,6 @@ #include "cephx/CephxAuthorizeHandler.h" #include "none/AuthNoneAuthorizeHandler.h" #include "AuthSupported.h" -#include "common/debug.h" #include "common/Mutex.h" static bool _initialized = false; @@ -45,8 +44,5 @@ AuthAuthorizeHandler *get_authorize_handler(int protocol) map::iterator iter = authorizers.find(protocol); if (iter != authorizers.end()) return iter->second; - - dout(0) << "get_authorize_handler protocol " << protocol << " not supported" << dendl; - return NULL; } diff --git a/src/mds/MDS.cc b/src/mds/MDS.cc index 5f087526d8e81..ce0f589230452 100644 --- a/src/mds/MDS.cc +++ b/src/mds/MDS.cc @@ -2015,6 +2015,7 @@ bool MDS::ms_verify_authorizer(Connection *con, int peer_type, AuthAuthorizeHandler *authorize_handler = get_authorize_handler(protocol); if (!authorize_handler) { + dout(0) << "No AuthAuthorizeHandler found for protocol " << protocol << dendl; is_valid = false; return true; } diff --git a/src/osd/OSD.cc b/src/osd/OSD.cc index ebbaf7491a43f..2c3dbfde4a471 100644 --- a/src/osd/OSD.cc +++ b/src/osd/OSD.cc @@ -2602,6 +2602,7 @@ bool OSD::ms_verify_authorizer(Connection *con, int peer_type, { AuthAuthorizeHandler *authorize_handler = get_authorize_handler(protocol); if (!authorize_handler) { + dout(0) << "No AuthAuthorizeHandler found for protocol " << protocol << dendl; isvalid = false; return true; } -- 2.39.5