| 862 | } |
| 863 | |
| 864 | CtPtr 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 | |
| 877 | CtPtr ProtocolV1::handle_message_data(char *buffer, int r) { |
| 878 | ldout(cct, 20) << __func__ << " r=" << r << dendl; |
nothing calls this directly
no test coverage detected