From: Amnon Hanuhov Date: Tue, 13 Apr 2021 11:45:37 +0000 (+0300) Subject: crimson/mon: Use crimson::net::make_message() in MonClient X-Git-Tag: v17.1.0~2024^2~11 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=4215aa7f8918c93d6b430fc02048973bae3cc82c;p=ceph.git crimson/mon: Use crimson::net::make_message() in MonClient Signed-off-by: Amnon Hanuhov --- diff --git a/src/crimson/mon/MonClient.cc b/src/crimson/mon/MonClient.cc index 08c34debc44b..bfb8089ad282 100644 --- a/src/crimson/mon/MonClient.cc +++ b/src/crimson/mon/MonClient.cc @@ -202,7 +202,7 @@ Connection::create_auth(crimson::auth::method_t protocol, seastar::future> Connection::do_auth_single(Connection::request_t what) { - auto m = make_message(); + auto m = crimson::net::make_message(); m->protocol = auth->get_protocol(); auth->prepare_build_request(); switch (what) { @@ -220,7 +220,7 @@ Connection::do_auth_single(Connection::request_t what) assert(0); } logger().info("sending {}", *m); - return conn->send(m).then([this] { + return conn->send(std::move(m)).then([this] { logger().info("waiting"); return reply.get_shared_future(); }).then([this] (Ref m) { @@ -265,7 +265,7 @@ Connection::do_auth(Connection::request_t what) { seastar::future Connection::authenticate_v2() { auth_start = seastar::lowres_system_clock::now(); - return conn->send(make_message()).then([this] { + return conn->send(crimson::net::make_message()).then([this] { auth_done.emplace(); return auth_done->get_future(); });