diff options
author | Siyuan Zhou <siyuan.zhou@mongodb.com> | 2016-08-19 16:20:04 -0400 |
---|---|---|
committer | Siyuan Zhou <siyuan.zhou@mongodb.com> | 2016-08-22 15:49:09 -0400 |
commit | 221070d21247ec9d53863ee66e768f63c5d8c77c (patch) | |
tree | 390fd8308ad76f938c8b6a20179abc726b3da310 /jstests/replsets/catchup.js | |
parent | 96d6fcb0c18e7d3e99bce7877714e32ed1313bbf (diff) | |
download | mongo-221070d21247ec9d53863ee66e768f63c5d8c77c.tar.gz |
SERVER-25712 Enforce the sync source in catchup.js
Diffstat (limited to 'jstests/replsets/catchup.js')
-rw-r--r-- | jstests/replsets/catchup.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/jstests/replsets/catchup.js b/jstests/replsets/catchup.js index 562981af09b..1e9cbe809d5 100644 --- a/jstests/replsets/catchup.js +++ b/jstests/replsets/catchup.js @@ -162,6 +162,7 @@ load("jstests/replsets/rslib.js"); // Disable fail point on one of the other secondaries. // Wait until it catches up with the old primary. disableFailPoint(oldSecondaries[1]); + assert.commandWorked(oldSecondaries[1].adminCommand({replSetSyncFrom: oldPrimary.host})); awaitOpTime(oldSecondaries[1], latestOp.ts); // Disconnect the new primary and the old one. oldPrimary.disconnect(newPrimary); |