diff options
Diffstat (limited to 'jstests/noPassthrough/oplog_rollover_agg.js')
-rw-r--r-- | jstests/noPassthrough/oplog_rollover_agg.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/jstests/noPassthrough/oplog_rollover_agg.js b/jstests/noPassthrough/oplog_rollover_agg.js index 23607e95395..56a77ffcd6f 100644 --- a/jstests/noPassthrough/oplog_rollover_agg.js +++ b/jstests/noPassthrough/oplog_rollover_agg.js @@ -88,7 +88,7 @@ function oplogIsRolledOver() { // oplog's current oldest entry. Said another way, the oplog is rolled over when // everything in the oplog is newer than what used to be the newest entry. return bsonWoCompare(mostRecentOplogEntry.ts, - getLeastRecentOp({server: primaryNode, readConcern: "majority"}).ts) < 0; + getFirstOplogEntry(primaryNode, {readConcern: "majority"}).ts) < 0; } while (!oplogIsRolledOver()) { |