1
0
Fork 0

integrated agency bugfix from 3.0

This commit is contained in:
Kaveh Vahedipour 2016-08-01 14:41:13 +00:00
parent da893cc056
commit 3a1e10eecb
1 changed files with 4 additions and 3 deletions

View File

@ -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) {