summaryrefslogtreecommitdiff
path: root/src/mongo/shell/session.js
diff options
context:
space:
mode:
authorPavi Vetriselvan <pavithra.vetriselvan@mongodb.com>2020-09-01 12:04:19 -0400
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-09-08 03:35:45 +0000
commitde38970c3b17250fd14ce83fb8a81d3f3e10bc69 (patch)
tree67f58abad4685171c6cdaaf5551f790fb1a45a69 /src/mongo/shell/session.js
parent3af444c081fea53ab85073211aa04064d399a898 (diff)
downloadmongo-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.js2
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;
}