diff options
author | Spencer T Brody <spencer@mongodb.com> | 2016-12-15 18:07:51 -0500 |
---|---|---|
committer | Spencer T Brody <spencer@mongodb.com> | 2017-01-04 16:00:25 -0500 |
commit | 87f49488f1b5c872daa71fd2fd9b5d744409a817 (patch) | |
tree | 38f4d3eaf16f933c9cfc184501f6e0068be807f1 /jstests/replsets/double_rollback.js | |
parent | a59962fab548e695f2e0efa2f261381cba771551 (diff) | |
download | mongo-87f49488f1b5c872daa71fd2fd9b5d744409a817.tar.gz |
SERVER-27123 Only update the commit point as a secondary from oplog queries against your sync source
Diffstat (limited to 'jstests/replsets/double_rollback.js')
-rw-r--r-- | jstests/replsets/double_rollback.js | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/jstests/replsets/double_rollback.js b/jstests/replsets/double_rollback.js index 42aa40fae6a..342775c2545 100644 --- a/jstests/replsets/double_rollback.js +++ b/jstests/replsets/double_rollback.js @@ -12,7 +12,9 @@ (function() { 'use strict'; + load("jstests/libs/check_log.js"); + load("jstests/replsets/rslib.js"); var name = "double_rollback"; var dbName = "test"; @@ -32,14 +34,6 @@ var nodes = rst.startSet(); rst.initiate(); - function waitForState(node, state) { - assert.soonNoExcept(function() { - assert.commandWorked(node.adminCommand( - {replSetTest: 1, waitForMemberState: state, timeoutMillis: rst.kDefaultTimeoutMS})); - return true; - }); - } - function stepUp(rst, node) { var primary = rst.getPrimary(); if (primary != node) { |