summaryrefslogtreecommitdiff
path: root/jstests/replsets/read_committed.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/replsets/read_committed.js')
-rw-r--r--jstests/replsets/read_committed.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/jstests/replsets/read_committed.js b/jstests/replsets/read_committed.js
index 3792d242375..e50af290e35 100644
--- a/jstests/replsets/read_committed.js
+++ b/jstests/replsets/read_committed.js
@@ -70,7 +70,7 @@ replTest.initiate(config);
// Get connections and collection.
var primary = replTest.getPrimary();
-var secondary = replTest._slaves[0];
+var secondary = replTest.getSecondary();
var coll = primary.getDB(name)[name];
var secondaryColl = secondary.getDB(name)[name];