jstests/serverless/libs/basic_serverless_test.js
/*
     * Returns a ShardSplitOperation object to run a shard split.
     * @param {tenantIds} tells which tenant ids to run a split for.
     * @returns the created shard split operation object.
     */
Returns a ShardSplitOperation object to run a shard split.
@param {tenantIds} tells which tenant ids to run a split for.
@returns the created shard split operation object.
Returns a ShardSplitOperation object to run a shard split . @param { tenantIds } tells which tenant ids to run a split for . @returns the created shard split operation object .
createSplitOperation(tenantIds) {
        const migrationId = UUID();
        jsTestLog("Asserting no state document exist before command");
        assert.isnull(findSplitOperation(this.donor.getPrimary(), migrationId));
        return new ShardSplitOperation(
            this, this.recipientSetName, this.recipientTagName, tenantIds, migrationId);
    }
createSplitOperation ( tenantIds ) { const migrationId = UUID ( ) ; jsTestLog ( "Asserting no state document exist before command" ) ; assert . isnull ( findSplitOperation ( this . donor . getPrimary ( ) , migrationId ) ) ; return new ShardSplitOperation ( this , this . recipientSetName , this . recipientTagName , tenantIds , migrationId ) ; }
Returns a ShardSplitOperation object to run a shard split.
Returns a ShardSplitOperation object to run a shard split .