| 1211 | } |
| 1212 | |
| 1213 | void ProtocolV1::requeue_sent() { |
| 1214 | write_in_progress = false; |
| 1215 | if (sent.empty()) { |
| 1216 | return; |
| 1217 | } |
| 1218 | |
| 1219 | auto &rq = out_q[CEPH_MSG_PRIO_HIGHEST]; |
| 1220 | out_seq -= sent.size(); |
| 1221 | while (!sent.empty()) { |
| 1222 | Message *m = sent.back(); |
| 1223 | sent.pop_back(); |
| 1224 | ldout(cct, 10) << __func__ << " " << *m << " for resend " |
| 1225 | << " (" << m->get_seq() << ")" << dendl; |
| 1226 | m->clear_payload(); |
| 1227 | rq.push_front(out_q_entry_t{ceph::buffer::list(), m, false}); |
| 1228 | } |
| 1229 | } |
| 1230 | |
| 1231 | uint64_t ProtocolV1::discard_requeued_up_to(uint64_t out_seq, uint64_t seq) { |
| 1232 | ldout(cct, 10) << __func__ << " " << seq << dendl; |
no test coverage detected