Resend osd/pg commands on the OSDSession, just as we do with other request
types.
Signed-off-by: Sage Weil <sage@inktank.com>
send_linger(lresend.begin()->second);
lresend.erase(lresend.begin());
}
+
+ // resend commands
+ map<uint64_t,CommandOp*> cresend; // resend in order
+ for (xlist<CommandOp*>::iterator k = session->command_ops.begin(); !k.end(); ++k) {
+ logger->inc(l_osdc_command_resend);
+ cresend[(*k)->tid] = *k;
+ }
+ while (!cresend.empty()) {
+ _send_command(cresend.begin()->second);
+ cresend.erase(cresend.begin());
+ }
}
void Objecter::schedule_tick()