mirror of https://gitee.com/bigwinds/arangodb
broke devel and fixed
This commit is contained in:
parent
93ffaa6f3b
commit
323d35559a
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue