| 420 | } |
| 421 | |
| 422 | void 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 | |
| 434 | void ProtocolV2::send_message(Message *m) { |
| 435 | uint64_t f = connection->get_features(); |
nothing calls this directly
no test coverage detected