if (ops.count(info->register_tid)) {
Op *o = ops[info->register_tid];
op_cancel_map_check(o);
- cancel_op(o);
+ cancel_linger_op(o);
}
info->register_tid = _op_submit(o);
} else {
send_op(op);
}
} else {
- cancel_op(op);
+ cancel_linger_op(op);
}
}
for (list<LingerOp*>::iterator p = need_resend_linger.begin(); p != need_resend_linger.end(); ++p) {
if (op->should_resend) {
resend[op->tid] = op;
} else {
- cancel_op(op);
+ cancel_linger_op(op);
}
}
while (!resend.empty()) {
return RECALC_OP_TARGET_NO_ACTION;
}
-void Objecter::cancel_op(Op *op)
+void Objecter::cancel_linger_op(Op *op)
{
ldout(cct, 15) << "cancel_op " << op->tid << dendl;
- // currently this only works for linger registrations, since we just
- // throw out the callbacks.
assert(!op->should_resend);
delete op->onack;
delete op->oncommit;
map<epoch_t,list< pair<Context*, int> > > waiting_for_map;
void send_op(Op *op);
- void cancel_op(Op *op);
+ void cancel_linger_op(Op *op);
void finish_op(Op *op);
bool is_pg_changed(vector<int>& a, vector<int>& b, bool any_change=false);
enum recalc_op_target_result {