void Reporter::_callback(const ReplicationExecutor::RemoteCommandCallbackData& rcbd) { boost::lock_guard<boost::mutex> lk(_mutex); _status = rcbd.response.getStatus(); _active = false; if (_status.isOK() && _willRunAgain) { _schedule_inlock(); } else { _willRunAgain = false; } }
void Reporter::_callback(const ReplicationExecutor::RemoteCommandCallbackArgs& rcbd) { stdx::lock_guard<stdx::mutex> lk(_mutex); _status = rcbd.response.getStatus(); _active = false; LOG(2) << "Reporter ended with status: " << _status << " after reporting to " << _target; if (_status.isOK() && _willRunAgain) { _schedule_inlock(); } else { _willRunAgain = false; } }
Status Reporter::trigger() { stdx::lock_guard<stdx::mutex> lk(_mutex); return _schedule_inlock(); }