jstests/replsets/tenant_migration_donor_interrupt_on_stepdown_and_shutdown.js
/**
 * Asserts the command either succeeded or failed with a NotPrimary error.
 */
Asserts the command either succeeded or failed with a NotPrimary error.
Asserts the command either succeeded or failed with a NotPrimary error .
function assertCmdSucceededOrInterruptedDueToStepDown(cmdThread) {
    const res = cmdThread.returnData();
    assert(res.ok || res.code === ErrorCodes.TenantMigrationCommitted ||
               ErrorCodes.isNotPrimaryError(res.code),
           res);
}
function assertCmdSucceededOrInterruptedDueToStepDown ( cmdThread ) { const res = cmdThread . returnData ( ) ; assert ( res . ok || res . code === ErrorCodes . TenantMigrationCommitted || ErrorCodes . isNotPrimaryError ( res . code ) , res ) ; }
Asserts the command either succeeded or failed with a NotPrimary error.
Asserts the command either succeeded or failed with a NotPrimary error .