1
0
Fork 0

broke devel and fixed

This commit is contained in:
Kaveh Vahedipour 2017-05-05 16:15:28 +02:00
parent 93ffaa6f3b
commit 323d35559a
1 changed files with 6 additions and 7 deletions

View File

@ -1204,13 +1204,12 @@ arangodb::consensus::index_t Agent::rebuildDBs() {
auto logs = _state.slices(_lastCompactionIndex+1); auto logs = _state.slices(_lastCompactionIndex+1);
if (!logs.empty()) { _spearhead.clear();
_spearhead.clear(); _spearhead.apply(logs, _leaderCommitIndex, _constituent.term());
_spearhead.apply(logs, , _constituent.term()); _readDB.clear();
_readDB.clear(); _readDB.apply(logs, _leaderCommitIndex, _constituent.term());
_readDB.apply(logs, _leaderCommitIndex, _constituent.term()); LOG_TOPIC(TRACE, Logger::AGENCY) << "ReadDB: " << _readDB;
LOG_TOPIC(TRACE, Logger::AGENCY) << "ReadDB: " << _readDB;
}
_lastAppliedIndex = _leaderCommitIndex; _lastAppliedIndex = _leaderCommitIndex;
//_lastCompactionIndex = _leaderCommitIndex; //_lastCompactionIndex = _leaderCommitIndex;