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