예제 #1
0
파일: reporter.cpp 프로젝트: liupu/mongo
    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;
        }
    }
예제 #2
0
파일: reporter.cpp 프로젝트: daveh86/mongo
    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;
        }
    }
예제 #3
0
파일: reporter.cpp 프로젝트: daveh86/mongo
 Status Reporter::trigger() {
     stdx::lock_guard<stdx::mutex> lk(_mutex);
     return _schedule_inlock();
 }