]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
crimson/net: add AuthConnectionMeta to Protocol
authorYingxin Cheng <yingxincheng@gmail.com>
Mon, 11 Mar 2019 08:15:28 +0000 (16:15 +0800)
committerKefu Chai <kchai@redhat.com>
Fri, 5 Apr 2019 03:21:19 +0000 (11:21 +0800)
Signed-off-by: Yingxin Cheng <yingxincheng@gmail.com>
src/crimson/net/Fwd.h
src/crimson/net/Protocol.cc
src/crimson/net/Protocol.h

index f47b61dc1c5fb0611b8702e1da62da76cfd166b8..c6b4b5c2e82e3397c88389c1fc7e47c72ddd5862 100644 (file)
@@ -23,6 +23,9 @@
 using peer_type_t = int;
 using auth_proto_t = int;
 
+class AuthConnectionMeta;
+using AuthConnectionMetaRef = seastar::lw_shared_ptr<AuthConnectionMeta>;
+
 namespace ceph::net {
 
 using msgr_tag_t = uint8_t;
index 193918b867f88491134658051303ae021ea8d5dc..f509ec28ec284b54876e7f8450db1d12c4c528af 100644 (file)
@@ -3,6 +3,8 @@
 
 #include "Protocol.h"
 
+#include "auth/Auth.h"
+
 #include "crimson/common/log.h"
 #include "Socket.h"
 #include "SocketConnection.h"
@@ -20,7 +22,9 @@ Protocol::Protocol(int type,
                    SocketConnection& conn)
   : proto_type(type),
     dispatcher(dispatcher),
-    conn(conn) {}
+    conn(conn),
+    auth_meta{seastar::make_lw_shared<AuthConnectionMeta>()}
+{}
 
 Protocol::~Protocol()
 {
index 4777af3c634fe85f218596de2097667b1046240b..5d4a39496b8bc97c68a6136191535240aaee5a27 100644 (file)
@@ -54,6 +54,7 @@ class Protocol {
 
   SocketFRef socket;
   seastar::gate pending_dispatch;
+  AuthConnectionMetaRef auth_meta;
 
   // write_state is changed with state atomically, indicating the write
   // behavior of the according state.