summaryrefslogtreecommitdiff
path: root/jstests/replsets/buildindexes.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/replsets/buildindexes.js')
-rw-r--r--jstests/replsets/buildindexes.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/jstests/replsets/buildindexes.js b/jstests/replsets/buildindexes.js
index e00a9e94ef7..3be0ba68896 100644
--- a/jstests/replsets/buildindexes.js
+++ b/jstests/replsets/buildindexes.js
@@ -21,7 +21,7 @@ var primary = replTest.getPrimary().getDB(name);
var secondaryConns = replTest.getSecondaries();
var secondaries = [];
for (var i in secondaryConns) {
- secondaryConns[i].setSlaveOk();
+ secondaryConns[i].setSecondaryOk();
secondaries.push(secondaryConns[i].getDB(name));
}
replTest.awaitReplication();