If we had a pending failure report, and send a cancellation, take it
out of our pending list so that we don't keep resending cancellations.
Signed-off-by: Sage Weil <sage@inktank.com>
// Cancel false reports
if (failure_queue.count(from))
failure_queue.erase(from);
- if (failure_pending.count(from))
+ if (failure_pending.count(from)) {
send_still_alive(curmap->get_epoch(), failure_pending[from]);
+ failure_pending.erase(from);
+ }
}
break;