From: Joao Eduardo Luis Date: Fri, 14 Nov 2014 21:03:54 +0000 (+0000) Subject: mon: Monitor: stash auth entity name in session X-Git-Tag: v0.89~9^2~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=ca8e1efc0be9bffcfbdce5593526d257aa498062;p=ceph.git mon: Monitor: stash auth entity name in session Backport: giant Signed-off-by: Joao Eduardo Luis --- diff --git a/src/mon/Monitor.cc b/src/mon/Monitor.cc index ba4acbda02ac..a0229aed8102 100644 --- a/src/mon/Monitor.cc +++ b/src/mon/Monitor.cc @@ -3038,7 +3038,6 @@ void Monitor::_ms_dispatch(Message *m) ConnectionRef connection = m->get_connection(); MonSession *s = NULL; MonCap caps; - EntityName entity_name; bool src_is_mon; // regardless of who we are or who the sender is, the message must @@ -3109,7 +3108,7 @@ void Monitor::_ms_dispatch(Message *m) if (s) { if (s->auth_handler) { - entity_name = s->auth_handler->get_entity_name(); + s->entity_name = s->auth_handler->get_entity_name(); } dout(20) << " caps " << s->caps.get_str() << dendl; } diff --git a/src/mon/Session.h b/src/mon/Session.h index e794d6fdb1af..ebe865adba98 100644 --- a/src/mon/Session.h +++ b/src/mon/Session.h @@ -52,6 +52,7 @@ struct MonSession : public RefCountedObject { map sub_map; AuthServiceHandler *auth_handler; + EntityName entity_name; ConnectionRef proxy_con; uint64_t proxy_tid;