1
0
Fork 0

don't issue a warning when transaction log iterator reports more data (#9869)

This commit is contained in:
Jan 2019-09-02 10:29:00 +02:00 committed by KVS85
parent 480f0e799a
commit 479e2ab5da
1 changed files with 4 additions and 3 deletions

View File

@ -496,9 +496,10 @@ Result catchup(RocksDBIndex& ridx, WriteBatchType& wb, AccessMode::Type mode,
}
s = iterator->status();
// we can ignore it if we get a try again when we have exclusive access,
// because that indicates a write to another collection
if (!s.ok() && res.ok() && !(haveExclusiveAccess && s.IsTryAgain())) {
// we can ignore it if we get a try again return value, because that either
// indicates a write to another collection, or a write to this collection if
// we are not in exclusive mode, in which case we will call catchup again
if (!s.ok() && res.ok() && !s.IsTryAgain()) {
LOG_TOPIC("8e3a4", WARN, Logger::ENGINES) << "iterator error '" <<
s.ToString() << "'";
res = rocksutils::convertStatus(s);