fix: canDiscardPopped was not reset when necessary in all cases
This commit is contained in:
parent
9e3ec2cb33
commit
b5cb7919b6
|
@ -60,7 +60,7 @@ public:
|
|||
}
|
||||
}
|
||||
}
|
||||
TraceEvent("PeekNextGetMore").detail("Queue", self->recoveryQueue.size()).detail("Bytes", bytes).detail("Loc", self->recoveryLoc)
|
||||
TraceEvent("PeekNextGetMore").detail("Total", self->totalRecoveredBytes).detail("Queue", self->recoveryQueue.size()).detail("Bytes", bytes).detail("Loc", self->recoveryLoc)
|
||||
.detail("End", self->logSystem->getEnd()).detail("HasMessage", self->cursor->hasMessage()).detail("Version", self->cursor->version().version);
|
||||
|
||||
if(self->cursor->popped() != 0 || (!self->hasDiscardedData && BUGGIFY_WITH_PROB(0.01))) {
|
||||
|
|
|
@ -1047,10 +1047,12 @@ ACTOR Future<Void> bufferedGetMore( ILogSystem::BufferedCursor* self, TaskPriori
|
|||
self->hasNextMessage = iter != self->messages.end();
|
||||
if(self->hasNextMessage) {
|
||||
self->messageIndex = iter - self->messages.begin();
|
||||
self->canDiscardPopped = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
if(self->hasNextMessage) {
|
||||
self->canDiscardPopped = false;
|
||||
}
|
||||
return Void();
|
||||
}
|
||||
|
||||
|
|
|
@ -749,7 +749,7 @@ struct TagPartitionedLogSystem : ILogSystem, ReferenceCounted<TagPartitionedLogS
|
|||
TraceEvent("TLogPeekTxsNoLogs", dbgid);
|
||||
return Reference<ILogSystem::ServerPeekCursor>( new ILogSystem::ServerPeekCursor( Reference<AsyncVar<OptionalInterface<TLogInterface>>>(), txsTag, begin, end, false, false ) );
|
||||
}
|
||||
TraceEvent("TLogPeekTxs", dbgid).detail("Begin", begin).detail("End", end).detail("LocalEnd", localEnd).detail("PeekLocality", peekLocality);
|
||||
TraceEvent("TLogPeekTxs", dbgid).detail("Begin", begin).detail("End", end).detail("LocalEnd", localEnd).detail("PeekLocality", peekLocality).detail("CanDiscardPopped", canDiscardPopped);
|
||||
|
||||
int maxTxsTags = txsTags;
|
||||
bool needsOldTxs = tLogs[0]->tLogVersion < TLogVersion::V4;
|
||||
|
|
Loading…
Reference in New Issue