summaryrefslogtreecommitdiff
path: root/jstests/sharding/recovering_slaveok.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/sharding/recovering_slaveok.js')
-rw-r--r--jstests/sharding/recovering_slaveok.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/jstests/sharding/recovering_slaveok.js b/jstests/sharding/recovering_slaveok.js
index c4efc5bd666..8862103d129 100644
--- a/jstests/sharding/recovering_slaveok.js
+++ b/jstests/sharding/recovering_slaveok.js
@@ -25,8 +25,8 @@ var collSOk = mongosSOK.getCollection( "" + coll );
var rsA = shardTest._rs[0].test;
var rsB = shardTest._rs[1].test;
-rsA.getMaster().getDB( "test_a" ).dummy.insert({ x : 1 });
-rsB.getMaster().getDB( "test_b" ).dummy.insert({ x : 1 });
+rsA.getPrimary().getDB( "test_a" ).dummy.insert({ x : 1 });
+rsB.getPrimary().getDB( "test_b" ).dummy.insert({ x : 1 });
rsA.awaitReplication();
rsB.awaitReplication();