diff options
author | Pavi Vetriselvan <pavithra.vetriselvan@mongodb.com> | 2020-09-01 12:04:19 -0400 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-09-08 03:35:45 +0000 |
commit | de38970c3b17250fd14ce83fb8a81d3f3e10bc69 (patch) | |
tree | 67f58abad4685171c6cdaaf5551f790fb1a45a69 /src/mongo/shell/session.js | |
parent | 3af444c081fea53ab85073211aa04064d399a898 (diff) | |
download | mongo-de38970c3b17250fd14ce83fb8a81d3f3e10bc69.tar.gz |
SERVER-50527 Change NotMasterError category to NotPrimaryError
Diffstat (limited to 'src/mongo/shell/session.js')
-rw-r--r-- | src/mongo/shell/session.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/shell/session.js b/src/mongo/shell/session.js index 9681997c49d..d802d391010 100644 --- a/src/mongo/shell/session.js +++ b/src/mongo/shell/session.js @@ -325,7 +325,7 @@ var { * source/retryable-writes/retryable-writes.rst#terms */ function isRetryableCode(code) { - return ErrorCodes.isNetworkError(code) || ErrorCodes.isNotMasterError(code) || + return ErrorCodes.isNetworkError(code) || ErrorCodes.isNotPrimaryError(code) || ErrorCodes.isShutdownError(code) || ErrorCodes.WriteConcernFailed === code; } |