Skip to content

Commit

Permalink
Merge PR ceph#60106 into main
Browse files Browse the repository at this point in the history
* refs/pull/60106/head:
	msg/async/ProtocolV2: pass `desc` as `std::string_view` to write()

Reviewed-by: Patrick Donnelly <[email protected]>
Reviewed-by: Radoslaw Zarzynski <[email protected]>
  • Loading branch information
Patrick Donnelly committed Oct 22, 2024
2 parents 4c38857 + 966920e commit ee6523b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/msg/async/ProtocolV2.cc
Original file line number Diff line number Diff line change
Expand Up @@ -796,7 +796,7 @@ CtPtr ProtocolV2::read(CONTINUATION_RXBPTR_TYPE<ProtocolV2> &next,
}

template <class F>
CtPtr ProtocolV2::write(const std::string &desc,
CtPtr ProtocolV2::write(std::string_view desc,
CONTINUATION_TYPE<ProtocolV2> &next,
F &frame) {
ceph::bufferlist bl;
Expand All @@ -812,7 +812,7 @@ CtPtr ProtocolV2::write(const std::string &desc,
return write(desc, next, bl);
}

CtPtr ProtocolV2::write(const std::string &desc,
CtPtr ProtocolV2::write(std::string_view desc,
CONTINUATION_TYPE<ProtocolV2> &next,
ceph::bufferlist &buffer) {
if (unlikely(pre_auth.enabled)) {
Expand Down
4 changes: 2 additions & 2 deletions src/msg/async/ProtocolV2.h
Original file line number Diff line number Diff line change
Expand Up @@ -135,10 +135,10 @@ class ProtocolV2 : public Protocol {
Ct<ProtocolV2> *read(CONTINUATION_RXBPTR_TYPE<ProtocolV2> &next,
rx_buffer_t&& buffer);
template <class F>
Ct<ProtocolV2> *write(const std::string &desc,
Ct<ProtocolV2> *write(std::string_view desc,
CONTINUATION_TYPE<ProtocolV2> &next,
F &frame);
Ct<ProtocolV2> *write(const std::string &desc,
Ct<ProtocolV2> *write(std::string_view desc,
CONTINUATION_TYPE<ProtocolV2> &next,
ceph::bufferlist &buffer);

Expand Down

0 comments on commit ee6523b

Please sign in to comment.