summaryrefslogtreecommitdiff
path: root/jstests/libs
diff options
context:
space:
mode:
authorRobert Guo <robert.guo@10gen.com>2018-05-17 09:33:33 -0400
committerRobert Guo <robert.guo@10gen.com>2018-05-17 09:33:33 -0400
commitc87d73cd446e14a1b7779752824604196d61f609 (patch)
treef909a8e7138ba9173d20f9a69a5b78603d9782a2 /jstests/libs
parent51f3afbc825fecf334dc0ae267c7838c5aa65808 (diff)
downloadmongo-c87d73cd446e14a1b7779752824604196d61f609.tar.gz
SERVER-34155 add clean shutdown primary passthrough
Diffstat (limited to 'jstests/libs')
-rw-r--r--jstests/libs/retryable_writes_util.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/jstests/libs/retryable_writes_util.js b/jstests/libs/retryable_writes_util.js
index 795fc33c254..9d9866e6c84 100644
--- a/jstests/libs/retryable_writes_util.js
+++ b/jstests/libs/retryable_writes_util.js
@@ -10,7 +10,8 @@ var RetryableWritesUtil = (function() {
*/
function isRetryableCode(code) {
return ErrorCodes.isNetworkError(code) || ErrorCodes.isNotMasterError(code) ||
- ErrorCodes.isWriteConcernError(code) || ErrorCodes.isInterruption(code);
+ ErrorCodes.isWriteConcernError(code) || ErrorCodes.isShutdownError(code) ||
+ ErrorCodes.isInterruption(code);
}
const kRetryableWriteCommands =