jstests/replsets/libs/tenant_migration_util.js
/**
     * Returns true if feature flag 'featureFlagShardSplit' is enabled, false otherwise.
     */
Returns true if feature flag 'featureFlagShardSplit' is enabled, false otherwise.
Returns true if feature flag ' featureFlagShardSplit ' is enabled false otherwise .
function isShardSplitEnabled(db) {
        const admin = db.getSiblingDB("admin");
        const flagDoc = admin.runCommand({getParameter: 1, featureFlagShardSplit: 1});
        const fcvDoc = admin.runCommand({getParameter: 1, featureCompatibilityVersion: 1});
        return flagDoc.hasOwnProperty("featureFlagShardSplit") &&
            flagDoc.featureFlagShardSplit.value &&
            MongoRunner.compareBinVersions(fcvDoc.featureCompatibilityVersion.version,
                                           flagDoc.featureFlagShardSplit.fcv) >= 0;
    }
function isShardSplitEnabled ( db ) { const admin = db . getSiblingDB ( "admin" ) ; const flagDoc = admin . runCommand ( { getParameter : 1 , featureFlagShardSplit : 1 } ) ; const fcvDoc = admin . runCommand ( { getParameter : 1 , featureCompatibilityVersion : 1 } ) ; return flagDoc . hasOwnProperty ( "featureFlagShardSplit" ) && flagDoc . featureFlagShardSplit . value && MongoRunner . compareBinVersions ( fcvDoc . featureCompatibilityVersion . version , flagDoc . featureFlagShardSplit . fcv ) >= 0 ; }
Returns true if feature flag 'featureFlagShardSplit' is enabled, false otherwise.
Returns true if feature flag ' featureFlagShardSplit ' is enabled false otherwise .