jstests/replsets/tenant_migration_conflicting_recipient_sync_data_cmds.js
/**
 * Runs recipientSyncData on the given host and returns the response.
 */
Runs recipientSyncData on the given host and returns the response.
Runs recipientSyncData on the given host and returns the response .
function runRecipientSyncDataCmd(primaryHost, {
    migrationIdString,
    tenantId,
    donorConnectionString,
    readPreference,
    recipientCertificateForDonor
}) {
    jsTestLog("Starting a recipientSyncDataCmd for migrationId: " + migrationIdString +
              " tenantId: '" + tenantId + "'");
    const primary = new Mongo(primaryHost);
    const res = primary.adminCommand({
        recipientSyncData: 1,
        migrationId: UUID(migrationIdString),
        donorConnectionString: donorConnectionString,
        tenantId: tenantId,
        readPreference: readPreference,
        startMigrationDonorTimestamp: Timestamp(1, 1),
        recipientCertificateForDonor: recipientCertificateForDonor
    });
    return res;
}
function runRecipientSyncDataCmd ( primaryHost , { migrationIdString , tenantId , donorConnectionString , readPreference , recipientCertificateForDonor } ) { jsTestLog ( "Starting a recipientSyncDataCmd for migrationId: " + migrationIdString + " tenantId: '" + tenantId + "'" ) ; const primary = new Mongo ( primaryHost ) ; const res = primary . adminCommand ( { recipientSyncData : 1 , migrationId : UUID ( migrationIdString ) , donorConnectionString : donorConnectionString , tenantId : tenantId , readPreference : readPreference , startMigrationDonorTimestamp : Timestamp ( 1 , 1 ) , recipientCertificateForDonor : recipientCertificateForDonor } ) ; return res ; }
Runs recipientSyncData on the given host and returns the response.
Runs recipientSyncData on the given host and returns the response .