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

Method requeue_sent

src/msg/async/ProtocolV1.cc:1213–1229  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1211}
1212
1213void 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
1231uint64_t ProtocolV1::discard_requeued_up_to(uint64_t out_seq, uint64_t seq) {
1232 ldout(cct, 10) << __func__ << " " << seq << dendl;

Callers 1

replaceMethod · 0.45

Calls 8

clear_payloadMethod · 0.80
listFunction · 0.50
emptyMethod · 0.45
sizeMethod · 0.45
backMethod · 0.45
pop_backMethod · 0.45
get_seqMethod · 0.45
push_frontMethod · 0.45

Tested by

no test coverage detected