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

Method prepare_send_message

src/msg/async/ProtocolV2.cc:422–432  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

420}
421
422void ProtocolV2::prepare_send_message(uint64_t features,
423 Message *m) {
424 ldout(cct, 20) << __func__ << " m=" << *m << dendl;
425
426 // associate message with Connection (for benefit of encode_payload)
427 ldout(cct, 20) << __func__ << (m->empty_payload() ? " encoding features " : " half-reencoding features ")
428 << features << " " << m << " " << *m << dendl;
429
430 // encode and copy out of *m
431 m->encode(features, 0);
432}
433
434void ProtocolV2::send_message(Message *m) {
435 uint64_t f = connection->get_features();

Callers

nothing calls this directly

Calls 2

empty_payloadMethod · 0.80
encodeMethod · 0.45

Tested by

no test coverage detected