summaryrefslogtreecommitdiff
path: root/jstests/tool/dumpsecondary.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/tool/dumpsecondary.js')
-rw-r--r--jstests/tool/dumpsecondary.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/jstests/tool/dumpsecondary.js b/jstests/tool/dumpsecondary.js
index 00f166dcf4c..7a641542498 100644
--- a/jstests/tool/dumpsecondary.js
+++ b/jstests/tool/dumpsecondary.js
@@ -3,7 +3,7 @@ var replTest = new ReplSetTest( {name: 'testSet', nodes: 2} );
var nodes = replTest.startSet();
replTest.initiate();
-var master = replTest.getMaster();
+var master = replTest.getPrimary();
db = master.getDB("foo")
db.foo.save({a: 1000});
replTest.awaitReplication();