jstests/replsets/tenant_migration_shard_merge_recipient_current_op.js
// Check currentOp fields' expected value once the recipient is in state "consistent" or later.
Check currentOp fields' expected value once the recipient is in state "consistent" or later.
Check currentOp fields ' expected value once the recipient is in state " consistent " or later .
function checkPostConsistentFieldsOK(res) {
    const currOp = res.inprog[0];
    assert(currOp.hasOwnProperty("startFetchingDonorOpTime") &&
               checkOptime(currOp.startFetchingDonorOpTime),
           res);
    assert(currOp.hasOwnProperty("startApplyingDonorOpTime") &&
               checkOptime(currOp.startApplyingDonorOpTime),
           res);
    assert(currOp.hasOwnProperty("cloneFinishedRecipientOpTime") &&
               checkOptime(currOp.cloneFinishedRecipientOpTime),
           res);
    assert(!currOp.hasOwnProperty("dataConsistentStopDonorOpTime"));
}
function checkPostConsistentFieldsOK ( res ) { const currOp = res . inprog [ 0 ] ; assert ( currOp . hasOwnProperty ( "startFetchingDonorOpTime" ) && checkOptime ( currOp . startFetchingDonorOpTime ) , res ) ; assert ( currOp . hasOwnProperty ( "startApplyingDonorOpTime" ) && checkOptime ( currOp . startApplyingDonorOpTime ) , res ) ; assert ( currOp . hasOwnProperty ( "cloneFinishedRecipientOpTime" ) && checkOptime ( currOp . cloneFinishedRecipientOpTime ) , res ) ; assert ( ! currOp . hasOwnProperty ( "dataConsistentStopDonorOpTime" ) ) ; }
Check currentOp fields' expected value once the recipient is in state "consistent" or later.
Check currentOp fields ' expected value once the recipient is in state " consistent " or later .
// Not applicable to shard merge protocol.