mirror of https://gitee.com/bigwinds/arangodb
geez
This commit is contained in:
parent
6c57f4eb67
commit
a19314f27e
|
@ -255,26 +255,13 @@ bool Agent::recvAppendEntriesRPC(
|
||||||
|
|
||||||
MUTEX_LOCKER(mutexLocker, _ioLock);
|
MUTEX_LOCKER(mutexLocker, _ioLock);
|
||||||
|
|
||||||
<<<<<<< HEAD
|
|
||||||
if (this->term() > term) {
|
|
||||||
if (leaderCommitIndex >= _lastCommitIndex) {
|
|
||||||
=======
|
|
||||||
if (this->term() > term) { // peer at higher term
|
if (this->term() > term) { // peer at higher term
|
||||||
if (leaderCommitIndex >= _lastCommitIndex) { //
|
if (leaderCommitIndex >= _lastCommitIndex) { //
|
||||||
>>>>>>> fb6e651525ad11e915ba2f7ff9019fa052f8b4f4
|
|
||||||
_constituent.follow(term);
|
_constituent.follow(term);
|
||||||
} else {
|
} else {
|
||||||
LOG_TOPIC(WARN, Logger::AGENCY) << "I have a higher term than RPC caller.";
|
LOG_TOPIC(WARN, Logger::AGENCY) << "I have a higher term than RPC caller.";
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
<<<<<<< HEAD
|
|
||||||
=======
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_constituent.vote(term, leaderId, prevIndex, prevTerm, true)) {
|
|
||||||
LOG_TOPIC(WARN, Logger::AGENCY) << "Not voting for " << leaderId;
|
|
||||||
return false;
|
|
||||||
>>>>>>> fb6e651525ad11e915ba2f7ff9019fa052f8b4f4
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!_constituent.vote(term, leaderId, prevIndex, prevTerm, true)) {
|
if (!_constituent.vote(term, leaderId, prevIndex, prevTerm, true)) {
|
||||||
|
|
Loading…
Reference in New Issue