jstests/replsets/libs/tenant_migration_util.js
/**
     * Construct a donorStartMigration command object with protocol: "shard merge" if the feature
     * flag is enabled.
     */
Construct a donorStartMigration command object with protocol: "shard merge" if the feature
flag is enabled.
Construct a donorStartMigration command object with protocol : " shard merge " if the feature flag is enabled .
function donorStartMigrationWithProtocol(cmd, db) {
        if (cmd['protocol'] === undefined && isShardMergeEnabled(db)) {
            return Object.assign(Object.assign({}, cmd), {protocol: "shard merge"});
        }
        return cmd;
    }
function donorStartMigrationWithProtocol ( cmd , db ) { if ( cmd [ 'protocol' ] === undefined && isShardMergeEnabled ( db ) ) { return Object . assign ( Object . assign ( { } , cmd ) , { protocol : "shard merge" } ) ; } return cmd ; }
Construct a donorStartMigration command object with protocol: "shard merge" if the feature
 flag is enabled.
Construct a donorStartMigration command object with protocol : " shard merge " if the feature flag is enabled .
// If we don't pass "protocol", the server uses "multitenant migrations" by default.