summaryrefslogtreecommitdiff
path: root/jstests/sharding/read_pref_cmd.js
diff options
context:
space:
mode:
authorJanna Golden <janna.golden@mongodb.com>2019-09-12 16:04:43 +0000
committerevergreen <evergreen@mongodb.com>2019-09-12 16:04:43 +0000
commit0f44a7313df97e17665f6959164946d89c1f29b7 (patch)
tree383bed515c2b0bc9905adda04d0301482b9b6961 /jstests/sharding/read_pref_cmd.js
parenta6f32b216ff69b47aa405d02c0c6c22e2d8c71c1 (diff)
downloadmongo-0f44a7313df97e17665f6959164946d89c1f29b7.tar.gz
SERVER-42765 Specify priority/votes for rs members in read_pref_cmd.js to ensure stable primary/secondary
Diffstat (limited to 'jstests/sharding/read_pref_cmd.js')
-rw-r--r--jstests/sharding/read_pref_cmd.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/jstests/sharding/read_pref_cmd.js b/jstests/sharding/read_pref_cmd.js
index e41a3c0b670..c869b9bafbe 100644
--- a/jstests/sharding/read_pref_cmd.js
+++ b/jstests/sharding/read_pref_cmd.js
@@ -323,6 +323,8 @@ rsConfig.members.forEach(function(member) {
member.tags = PRIMARY_TAG;
} else {
member.tags = SECONDARY_TAG;
+ member.priority = 0;
+ member.votes = 0;
}
});