]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
test/crimson: fix FTBFS 28902/head
authorKefu Chai <kchai@redhat.com>
Fri, 5 Jul 2019 14:51:10 +0000 (22:51 +0800)
committerKefu Chai <kchai@redhat.com>
Fri, 5 Jul 2019 16:15:27 +0000 (00:15 +0800)
Connection::send_message(Message*)

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/test/crimson/test_async_echo.cc

index c04e754d3445fa31f2915dd12b68a8caca6d8458..c9a4e907308eff73fa6aaea3f8b8f17f0aff06a7 100644 (file)
@@ -49,7 +49,7 @@ struct Server {
       return m->get_type() == CEPH_MSG_PING;
     }
     void ms_fast_dispatch(Message* m) override {
-      m->get_connection()->send_message(make_message<MPing>());
+      m->get_connection()->send_message(new MPing);
       m->put();
       {
         std::lock_guard lock{mutex};
@@ -132,7 +132,7 @@ struct Client {
       auto conn = msgr->connect_to(peer.name.type(),
                                    entity_addrvec_t{peer.addr});
       replied = false;
-      conn->send_message(make_message<MPing>());
+      conn->send_message(new MPing);
       std::unique_lock lock{mutex};
       return on_reply.wait_for(lock, 500ms, [&] {
         return replied;