summaryrefslogtreecommitdiff
path: root/jstests/replsets/initial_sync_ambiguous_index.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/replsets/initial_sync_ambiguous_index.js')
-rw-r--r--jstests/replsets/initial_sync_ambiguous_index.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/jstests/replsets/initial_sync_ambiguous_index.js b/jstests/replsets/initial_sync_ambiguous_index.js
index 7e415fade43..c50324db935 100644
--- a/jstests/replsets/initial_sync_ambiguous_index.js
+++ b/jstests/replsets/initial_sync_ambiguous_index.js
@@ -44,7 +44,7 @@ const secondary = rst.add({
rsConfig: {votes: 0, priority: 0},
setParameter: {"numInitialSyncAttempts": 1, 'collectionClonerBatchSize': clonerBatchSize}
});
-secondary.setSlaveOk();
+secondary.setSecondaryOk();
const secondaryColl = secondary.getDB(dbName).getCollection(collectionName);
// We set the collectionClonerBatchSize low above, so we will definitely hit