summaryrefslogtreecommitdiff
path: root/jstests/replsets/rslib.js
diff options
context:
space:
mode:
authorA. Jesse Jiryu Davis <jesse@mongodb.com>2020-11-02 17:05:22 -0500
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-11-02 22:30:45 +0000
commit72aacd4ffaf6500777a8a51f87b0797f8ea8ad0b (patch)
tree5de4d7a82905d9d0fe9961b52b768d5bb86de5c3 /jstests/replsets/rslib.js
parent12646ec5380bcc0dc10c66069a6583c653683922 (diff)
downloadmongo-72aacd4ffaf6500777a8a51f87b0797f8ea8ad0b.tar.gz
SERVER-33747 Fix crash when arbiter restarts and enters REMOVED
Diffstat (limited to 'jstests/replsets/rslib.js')
-rw-r--r--jstests/replsets/rslib.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/jstests/replsets/rslib.js b/jstests/replsets/rslib.js
index 67bc0df09f5..b193022c1ff 100644
--- a/jstests/replsets/rslib.js
+++ b/jstests/replsets/rslib.js
@@ -218,7 +218,7 @@ function reconfigWithRetry(primary, config, force) {
const newVersion =
assert.commandWorked(admin.runCommand({replSetGetConfig: 1})).config.version + 1;
reconfigCommand.replSetReconfig.version = newVersion;
- const res = admin.runCommand(reconfigCommand);
+ let res = admin.runCommand(reconfigCommand);
// Retry reconfig if quorum check failed because not enough voting nodes responded. One
// reason for this is if the connections used for heartbeats get closed on the destination