]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
tools/crimson: Use crimson::make_message() in perf_crimson_msgr 41861/head
authorAmnon Hanuhov <ahanukov@redhat.com>
Sat, 19 Jun 2021 14:56:13 +0000 (17:56 +0300)
committerAmnon Hanuhov <ahanukov@redhat.com>
Sat, 19 Jun 2021 14:56:13 +0000 (17:56 +0300)
Instead of ceph::make_message() because conn::send() in crimson expects
a std::unique_ptr and not boost::intrusive_ptr

Signed-off-by: Amnon Hanuhov <ahanukov@redhat.com>
src/tools/crimson/perf_crimson_msgr.cc

index e76f273a921f23a299092e76e67bc53240130448..19eada68d13f6b20e412b2dee59c92637fda485b 100644 (file)
@@ -162,7 +162,7 @@ static seastar::future<> run(
         const static hobject_t hobj(object_t(), oloc.key, CEPH_NOSNAP, pgid.ps(),
                                     pgid.pool(), oloc.nspace);
         static spg_t spgid(pgid);
-        auto rep = make_message<MOSDOp>(0, 0, hobj, spgid, 0, 0, 0);
+        auto rep = crimson::make_message<MOSDOp>(0, 0, hobj, spgid, 0, 0, 0);
         bufferlist data(msg_data);
         rep->write(0, msg_len, data);
         rep->set_tid(m->get_tid());
@@ -583,7 +583,7 @@ static seastar::future<> run(
           const static hobject_t hobj(object_t(), oloc.key, CEPH_NOSNAP, pgid.ps(),
                                       pgid.pool(), oloc.nspace);
           static spg_t spgid(pgid);
-          auto m = make_message<MOSDOp>(0, 0, hobj, spgid, 0, 0, 0);
+          auto m = crimson::make_message<MOSDOp>(0, 0, hobj, spgid, 0, 0, 0);
           bufferlist data(msg_data);
           m->write(0, msg_len, data);
           // use tid as the identity of each round