summaryrefslogtreecommitdiff
path: root/jstests/replsets/initial_sync_rename_collection.js
diff options
context:
space:
mode:
authorGeert Bosch <geert@mongodb.com>2017-08-02 18:39:55 -0400
committerGeert Bosch <geert@mongodb.com>2017-09-21 11:44:19 -0400
commitd296e1dfed119fb3ef9d4907ac1875480f1408c8 (patch)
treec4a7b3baaf399dd721d59ed99feb730e57c21b05 /jstests/replsets/initial_sync_rename_collection.js
parentaffde69fb41c8a76bbd80dab2df3b36b3efb0450 (diff)
downloadmongo-d296e1dfed119fb3ef9d4907ac1875480f1408c8.tar.gz
SERVER-4941 Allow renameCollection during initial sync
Diffstat (limited to 'jstests/replsets/initial_sync_rename_collection.js')
-rw-r--r--jstests/replsets/initial_sync_rename_collection.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/jstests/replsets/initial_sync_rename_collection.js b/jstests/replsets/initial_sync_rename_collection.js
index b8736b5274d..fdb77ea6da4 100644
--- a/jstests/replsets/initial_sync_rename_collection.js
+++ b/jstests/replsets/initial_sync_rename_collection.js
@@ -26,8 +26,7 @@
rst.awaitReplication();
jsTestLog('Bring up a new node');
- // TODO(SERVER-4941): Only a single initial sync attempt should be necessary.
- const secondary = rst.add({setParameter: 'numInitialSyncAttempts=3'});
+ const secondary = rst.add({setParameter: 'numInitialSyncAttempts=1'});
rst.reInitiate();
assert.eq(primary, rst.getPrimary(), 'Primary changed after reconfig');