Beispiel #1
0
    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;
        }
    }
Beispiel #2
0
    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;
        }
    }
Beispiel #3
0
 Status Reporter::trigger() {
     stdx::lock_guard<stdx::mutex> lk(_mutex);
     return _schedule_inlock();
 }