jstests/libs/retryable_writes_util.js
// Returns true if the error message contains a retryable code name.
Returns true if the error message contains a retryable code name.
Returns true if the error message contains a retryable code name .
function errmsgContainsRetryableCodeName(errmsg) {
        return typeof errmsg !== "undefined" && kRetryableCodeNames.some(codeName => {
            return errmsg.indexOf(codeName) > 0;
        });
    }
function errmsgContainsRetryableCodeName ( errmsg ) { return typeof errmsg !== "undefined" && kRetryableCodeNames . some ( codeName => { return errmsg . indexOf ( codeName ) > 0 ; } ) ; }
Returns true if the error message contains a retryable code name.
Returns true if the error message contains a retryable code name .