mirror of
https://github.com/ceph/ceph
synced 2025-02-24 03:27:10 +00:00
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:
parent
84265a695b
commit
bb71ebbb19
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user