summaryrefslogtreecommitdiff
path: root/jstests/sharding/count_slaveok.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/sharding/count_slaveok.js')
-rw-r--r--jstests/sharding/count_slaveok.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/jstests/sharding/count_slaveok.js b/jstests/sharding/count_slaveok.js
index 23612d96220..7ad5007be48 100644
--- a/jstests/sharding/count_slaveok.js
+++ b/jstests/sharding/count_slaveok.js
@@ -41,18 +41,18 @@ rst.awaitReplication();
var primary = rst.getPrimary();
var sec = rst.getSecondary();
-// Data now inserted... stop the master, since only two in set, other will still be secondary
+// Data now inserted... stop the primary, since only two in set, other will still be secondary
rst.stop(rst.getPrimary());
printjson(rst.status());
-// Wait for the mongos to recognize the slave
+// Wait for the mongos to recognize the secondary
awaitRSClientHosts(conn, sec, {ok: true, secondary: true});
// Make sure that mongos realizes that primary is already down
awaitRSClientHosts(conn, primary, {ok: false});
// Need to check secondaryOk=true first, since secondaryOk=false will destroy conn in pool when
-// master is down
+// primary is down
conn.setSecondaryOk();
// count using the command path