summaryrefslogtreecommitdiff
path: root/jstests/replsets/plan_cache_slaveok.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/replsets/plan_cache_slaveok.js')
-rw-r--r--jstests/replsets/plan_cache_slaveok.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/jstests/replsets/plan_cache_slaveok.js b/jstests/replsets/plan_cache_slaveok.js
index 311efef86bb..a63be51fae1 100644
--- a/jstests/replsets/plan_cache_slaveok.js
+++ b/jstests/replsets/plan_cache_slaveok.js
@@ -81,7 +81,7 @@ print("Start replica set with two nodes");
var replTest = new ReplSetTest({name: name, nodes: 2});
var nodes = replTest.startSet();
replTest.initiate();
-var primary = replTest.getMaster();
+var primary = replTest.getPrimary();
// Insert a document and let it sync to the secondary.
print("Initial sync");