jstests/libs/cluster_server_parameter_utils.js
// expected parameter objects on at least a majority of nodes.
expected parameter objects on at least a majority of nodes.
expected parameter objects on at least a majority of nodes .
function runGetClusterParameterReplicaSet(rst, getClusterParameterArgs, expectedClusterParameters) {
    let numMatches = 0;
    const numTotalNodes = rst.getSecondaries().length + 1;
    if (runGetClusterParameterNode(
            rst.getPrimary(), getClusterParameterArgs, expectedClusterParameters)) {
        numMatches++;
    }
    rst.getSecondaries().forEach(function(secondary) {
        if (runGetClusterParameterNode(
                secondary, getClusterParameterArgs, expectedClusterParameters)) {
            numMatches++;
        }
    });
    assert((numMatches / numTotalNodes) > 0.5);
}
function runGetClusterParameterReplicaSet ( rst , getClusterParameterArgs , expectedClusterParameters ) { let numMatches = 0 ; const numTotalNodes = rst . getSecondaries ( ) . length + 1 ; if ( runGetClusterParameterNode ( rst . getPrimary ( ) , getClusterParameterArgs , expectedClusterParameters ) ) { numMatches ++ ; } rst . getSecondaries ( ) . forEach ( function ( secondary ) { if ( runGetClusterParameterNode ( secondary , getClusterParameterArgs , expectedClusterParameters ) ) { numMatches ++ ; } } ) ; assert ( ( numMatches / numTotalNodes ) > 0.5 ) ; }
expected parameter objects on at least a majority of nodes.
expected parameter objects on at least a majority of nodes .