summaryrefslogtreecommitdiff
path: root/jstests/libs/retryable_writes_util.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/libs/retryable_writes_util.js')
-rw-r--r--jstests/libs/retryable_writes_util.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/jstests/libs/retryable_writes_util.js b/jstests/libs/retryable_writes_util.js
index 664022e0693..5f037fc9db4 100644
--- a/jstests/libs/retryable_writes_util.js
+++ b/jstests/libs/retryable_writes_util.js
@@ -9,7 +9,7 @@ var RetryableWritesUtil = (function() {
* src/mongo/shell/session.js and use it here.
*/
function isRetryableCode(code) {
- return ErrorCodes.isNetworkError(code) || ErrorCodes.isNotMasterError(code) ||
+ return ErrorCodes.isNetworkError(code) || ErrorCodes.isNotPrimaryError(code) ||
ErrorCodes.isWriteConcernError(code) || ErrorCodes.isShutdownError(code) ||
ErrorCodes.isInterruption(code);
}