diff options
author | matt dannenberg <matt.dannenberg@10gen.com> | 2015-05-22 10:17:26 -0400 |
---|---|---|
committer | matt dannenberg <matt.dannenberg@10gen.com> | 2015-08-05 04:17:46 -0400 |
commit | 197ea2a625dc04d95a7ad4933283b5f02ca2ad9e (patch) | |
tree | 1461ec1f1bb40d010f79fb727b753cf227952ac1 /jstests/replsets/optime.js | |
parent | d56b18054ae884c979135c34ba698e052b66d6c2 (diff) | |
download | mongo-197ea2a625dc04d95a7ad4933283b5f02ca2ad9e.tar.gz |
SERVER-18584 write an n-op when transition to primary is complete
Diffstat (limited to 'jstests/replsets/optime.js')
-rw-r--r-- | jstests/replsets/optime.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/jstests/replsets/optime.js b/jstests/replsets/optime.js index ff6b770d455..647864245dc 100644 --- a/jstests/replsets/optime.js +++ b/jstests/replsets/optime.js @@ -20,8 +20,7 @@ function optimesAreEqual(replTest) { var prevStatus = replTest.nodes[0].getDB('admin').serverStatus({oplog:true}).oplog; for (var i = 1; i < replTest.nodes.length; i++) { var status = replTest.nodes[i].getDB('admin').serverStatus({oplog:true}).oplog; - if (timestampCompare(prevStatus.latestOptime, status.latestOptime) != 0 || - timestampCompare(prevStatus.earliestOptime, status.earliestOptime) != 0) { + if (timestampCompare(prevStatus.latestOptime, status.latestOptime) != 0) { return false; } prevStatus = status; |