Skip to content

Commit

Permalink
fix random CheckReplOplog failures in 'passthough' test suites (#107)
Browse files Browse the repository at this point in the history
  • Loading branch information
igorsol authored and igorcanadi committed Oct 5, 2017
1 parent c5d05e2 commit 6ac6ac3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rocks_record_store.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1066,7 +1066,7 @@ namespace mongo {
_currentSequenceNumber =
RocksRecoveryUnit::getRocksRecoveryUnit(opCtx)->snapshot()->GetSequenceNumber();

if (!startIterator.isNull()) {
if (!startIterator.isNull() && !_readUntilForOplog.isNull()) {
// This is a hack to speed up first/last record retrieval from the oplog
_needFirstSeek = false;
_lastLoc = startIterator;
Expand Down

0 comments on commit 6ac6ac3

Please sign in to comment.