jstests/libs/override_methods/network_error_and_txn_override.js
// Returns if the given command on the given database can retry network errors.
Returns if the given command on the given database can retry network errors.
Returns if the given command on the given database can retry network errors .
function canRetryNetworkErrorForCommand(cmdName, cmdObj) {
    if (!configuredForNetworkRetry()) {
        return false;
    }
    if (isCmdInTransaction(cmdObj)) {
        return isCommitOrAbort(cmdName);
    }
    return true;
}
function canRetryNetworkErrorForCommand ( cmdName , cmdObj ) { if ( ! configuredForNetworkRetry ( ) ) { return false ; } if ( isCmdInTransaction ( cmdObj ) ) { return isCommitOrAbort ( cmdName ) ; } return true ; }
Returns if the given command on the given database can retry network errors.
Returns if the given command on the given database can retry network errors .
// Commands in transactions cannot be retried at the statement level, except for the // commit and abort.