diff options
| author | James Wahlin <james@mongodb.com> | 2017-05-31 10:05:24 -0400 |
|---|---|---|
| committer | James Wahlin <james@mongodb.com> | 2017-12-01 12:10:35 -0500 |
| commit | b7d69d885b54bb7583c24a09a6743cccabee7536 (patch) | |
| tree | 7a527b71e68696b7922439b5aa57e9d9d0b0f6d6 /jstests/noPassthroughWithMongod | |
| parent | 42e14f07cb17a5619e54354de471a9b5d4f6e5fa (diff) | |
| download | mongo-b7d69d885b54bb7583c24a09a6743cccabee7536.tar.gz | |
SERVER-29270 Oplog query for first/last entry should not use a blocking sort
(cherry picked from commit 3e8b9c599f3027778b48e8c3235d676134eef9bb)
Diffstat (limited to 'jstests/noPassthroughWithMongod')
| -rw-r--r-- | jstests/noPassthroughWithMongod/initial_sync_oplog_rollover.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/jstests/noPassthroughWithMongod/initial_sync_oplog_rollover.js b/jstests/noPassthroughWithMongod/initial_sync_oplog_rollover.js index 3a47e14447c..d186a8f59ec 100644 --- a/jstests/noPassthroughWithMongod/initial_sync_oplog_rollover.js +++ b/jstests/noPassthroughWithMongod/initial_sync_oplog_rollover.js @@ -34,7 +34,7 @@ assert.writeOK(coll.insert({a: 1})); function getFirstOplogEntry(conn) { - return conn.getDB('local').oplog.rs.find().sort({ts: 1}).limit(1)[0]; + return conn.getDB('local').oplog.rs.find().sort({$natural: 1}).limit(1)[0]; } var firstOplogEntry = getFirstOplogEntry(primary); |
