mirror of https://gitee.com/bigwinds/arangodb
integrated agency bugfix from 3.0
This commit is contained in:
parent
da893cc056
commit
3a1e10eecb
|
@ -173,8 +173,9 @@ void State::removeConflicts (query_t const& transactions) {
|
||||||
try {
|
try {
|
||||||
auto idx = slice[0].get("index").getUInt();
|
auto idx = slice[0].get("index").getUInt();
|
||||||
if (idx-_cur < _log.size()) {
|
if (idx-_cur < _log.size()) {
|
||||||
LOG_TOPIC(INFO, Logger::AGENCY) <<
|
LOG_TOPIC(INFO, Logger::AGENCY)
|
||||||
"Removing " << _log.size()-idx+_cur << " entries from log starting with " << idx;
|
<< "Removing " << _log.size()-idx+_cur
|
||||||
|
<< " entries from log starting with " << idx;
|
||||||
_log.erase(_log.begin()+idx);
|
_log.erase(_log.begin()+idx);
|
||||||
}
|
}
|
||||||
} catch (std::exception const& e) {
|
} catch (std::exception const& e) {
|
||||||
|
|
Loading…
Reference in New Issue