summaryrefslogtreecommitdiff
path: root/jstests/replsets/too_stale_secondary.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/replsets/too_stale_secondary.js')
-rw-r--r--jstests/replsets/too_stale_secondary.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/jstests/replsets/too_stale_secondary.js b/jstests/replsets/too_stale_secondary.js
index 369662e5f16..1a0c28b3454 100644
--- a/jstests/replsets/too_stale_secondary.js
+++ b/jstests/replsets/too_stale_secondary.js
@@ -34,7 +34,7 @@
"use strict";
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];
}
/**