MCPcopy Create free account
hub / github.com/ceph/ceph / read_message_data

Method read_message_data

src/msg/async/ProtocolV1.cc:864–875  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

862}
863
864CtPtr ProtocolV1::read_message_data() {
865 ldout(cct, 20) << __func__ << " msg_left=" << msg_left << dendl;
866
867 if (msg_left > 0) {
868 auto bp = data_blp.get_current_ptr();
869 unsigned read_len = std::min(bp.length(), msg_left);
870
871 return READB(read_len, bp.c_str(), handle_message_data);
872 }
873
874 return read_message_footer();
875}
876
877CtPtr ProtocolV1::handle_message_data(char *buffer, int r) {
878 ldout(cct, 20) << __func__ << " r=" << r << dendl;

Callers

nothing calls this directly

Calls 3

get_current_ptrMethod · 0.80
lengthMethod · 0.45
c_strMethod · 0.45

Tested by

no test coverage detected