tools/crimson: Use crimson::make_message() in perf_crimson_msgr

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>
This commit is contained in:
Amnon Hanuhov 2021-06-19 17:56:13 +03:00
parent 84265a695b
commit bb71ebbb19

View 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