diff options
author | matt dannenberg <matt.dannenberg@10gen.com> | 2015-05-13 11:44:27 -0400 |
---|---|---|
committer | matt dannenberg <matt.dannenberg@10gen.com> | 2015-05-19 17:57:13 -0400 |
commit | a24b7e7653abd981cc468a790b42c0fa796b14c9 (patch) | |
tree | 9aea56cebafa2dd3c3f258d774197a2c2c794910 /jstests/replsets | |
parent | fde1c4ecfd436484ddd20dbf446222496e416128 (diff) | |
download | mongo-a24b7e7653abd981cc468a790b42c0fa796b14c9.tar.gz |
SERVER-18152 SERVER-18254 new election code path and heartbeat protocol
Diffstat (limited to 'jstests/replsets')
-rw-r--r-- | jstests/replsets/oplog_note_cmd.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/jstests/replsets/oplog_note_cmd.js b/jstests/replsets/oplog_note_cmd.js index 2db0c2ae0b1..12a3eaac4c4 100644 --- a/jstests/replsets/oplog_note_cmd.js +++ b/jstests/replsets/oplog_note_cmd.js @@ -12,10 +12,11 @@ db.foo.insert({a:1}); var statusBefore = db.runCommand({replSetGetStatus: 1}); assert.commandWorked(db.runCommand({appendOplogNote: 1, data: {a: 1}})); var statusAfter = db.runCommand({replSetGetStatus: 1}); -assert.lt(statusBefore.members[0].optime, statusAfter.members[0].optime); +assert.lte(statusBefore.members[0].optime.term, statusAfter.members[0].optime.term); +assert.lt(statusBefore.members[0].optime.ts, statusAfter.members[0].optime.ts); // Make sure note written successfully var op = db.getSiblingDB('local').oplog.rs.find().sort({$natural: -1}).limit(1).next(); assert.eq(1, op.o.a); -rs.stopSet();
\ No newline at end of file +rs.stopSet(); |