summaryrefslogtreecommitdiff
path: root/jstests/hooks
diff options
context:
space:
mode:
authorAli Mir <ali.mir@mongodb.com>2020-08-26 11:28:13 -0400
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-09-04 14:15:35 +0000
commit0c2f4ad0b12d4890ff4c7766641ddb2f9ec7cd63 (patch)
tree68f0b9dc0c19dbef0235688cb8cdfe7ba63cf948 /jstests/hooks
parent3f9e675017474fd53b6cc149ea492aed95b8c92d (diff)
downloadmongo-0c2f4ad0b12d4890ff4c7766641ddb2f9ec7cd63.tar.gz
SERVER-49993 Update _slaves to _secondaries in replsettest.js
Diffstat (limited to 'jstests/hooks')
-rw-r--r--jstests/hooks/run_initial_sync_node_validation.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/jstests/hooks/run_initial_sync_node_validation.js b/jstests/hooks/run_initial_sync_node_validation.js
index b624267f28a..935e9d46bc5 100644
--- a/jstests/hooks/run_initial_sync_node_validation.js
+++ b/jstests/hooks/run_initial_sync_node_validation.js
@@ -20,7 +20,7 @@ assert(primary, 'calling getPrimary() failed');
// Find the hidden node.
var hiddenNode;
-for (var secondary of rst._slaves) {
+for (var secondary of rst.getSecondaries()) {
var isMasterRes = secondary.getDB('admin').isMaster();
if (isMasterRes.hidden) {
hiddenNode = secondary;