diff options
author | matt dannenberg <matt.dannenberg@10gen.com> | 2015-09-28 05:47:57 -0400 |
---|---|---|
committer | matt dannenberg <matt.dannenberg@10gen.com> | 2015-10-01 08:00:10 -0400 |
commit | d789bca4c9fe76cd4d5375e66e281ed5a349e8fd (patch) | |
tree | d98b551b8e00ba0c320666f855f3c878414a990a /jstests/replsets/replset1.js | |
parent | 1cd101f5bdaae56d67ba7df527da5c6e9352620b (diff) | |
download | mongo-d789bca4c9fe76cd4d5375e66e281ed5a349e8fd.tar.gz |
SERVER-18498 New replica set configurations have protocolVersion=1 by default
This re-adds Siyuan's work from commits 19d2885ec51768ab73eee0c7239d8eadc0c51d8d and 362aac3937e3ff39ee995919a529297488537191.
Diffstat (limited to 'jstests/replsets/replset1.js')
-rw-r--r-- | jstests/replsets/replset1.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/jstests/replsets/replset1.js b/jstests/replsets/replset1.js index 4688b8d7e04..6a4b1063de9 100644 --- a/jstests/replsets/replset1.js +++ b/jstests/replsets/replset1.js @@ -132,7 +132,8 @@ var doTest = function( signal ) { printjson(result); var lastOp = result.lastOp; var lastOplogOp = master.getDB("local").oplog.rs.find().sort({$natural : -1}).limit(1).next(); - assert.eq(lastOplogOp['ts'], lastOp); + assert.eq(lastOplogOp['ts'], lastOp['ts']); + assert.eq(lastOplogOp['t'], lastOp['t']); ts.forEach( function(z){ assert.eq( 2 , z.getIndexKeys().length , "A " + z.getMongo() ); } ); |