From: Kefu Chai Date: Thu, 11 Apr 2019 07:52:44 +0000 (+0800) Subject: crimson/mon: rename Connection::authenticate() X-Git-Tag: v15.1.0~2915^2~11 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=afdb0b5a56c23ee56ea2d8bbd0d4e7b391d7781e;p=ceph.git crimson/mon: rename Connection::authenticate() rename Connection::authenticate() to Connection::authenticate_v1() to differentiate it from Connection::authenticate_v2(). the latter will be added for v2 msgr support. Signed-off-by: Kefu Chai --- diff --git a/src/crimson/mon/MonClient.cc b/src/crimson/mon/MonClient.cc index ce57847b3756..cfe463900839 100644 --- a/src/crimson/mon/MonClient.cc +++ b/src/crimson/mon/MonClient.cc @@ -53,10 +53,10 @@ public: Connection(ceph::net::ConnectionRef conn, KeyRing* keyring); seastar::future<> handle_auth_reply(Ref m); - seastar::future<> authenticate(epoch_t epoch, - const EntityName& name, - const AuthMethodList& auth_methods, - uint32_t want_keys); + seastar::future<> authenticate_v1(epoch_t epoch, + const EntityName& name, + const AuthMethodList& auth_methods, + uint32_t want_keys); seastar::future<> close(); bool is_my_peer(const entity_addr_t& addr) const; AuthAuthorizer* get_authorizer(peer_type_t peer) const; @@ -192,10 +192,10 @@ seastar::future Connection::do_auth() } seastar::future<> -Connection::authenticate(epoch_t epoch, - const EntityName& name, - const AuthMethodList& auth_methods, - uint32_t want_keys) +Connection::authenticate_v1(epoch_t epoch, + const EntityName& name, + const AuthMethodList& auth_methods, + uint32_t want_keys) { return conn->keepalive().then([epoch, auth_methods, name, this] { return setup_session(epoch, auth_methods, name); @@ -624,7 +624,7 @@ seastar::future<> Client::reopen_session(int rank) ceph_assert((*xconn)->shard_id() == seastar::engine().cpu_id()); ceph::net::ConnectionRef conn = xconn->release(); auto& mc = pending_conns.emplace_back(conn, &keyring); - return mc.authenticate( + return mc.authenticate_v1( monmap.get_epoch(), entity_name, *auth_methods, want_keys).handle_exception([conn](auto ep) { return conn->close().then([ep = std::move(ep)] {