jstests/libs/cluster_server_parameter_utils.js
// Upserts config.clusterParameters document with w:majority via setClusterParameter.
Upserts config.clusterParameters document with w:majority via setClusterParameter.
Upserts config . clusterParameters document with w : majority via setClusterParameter .
function runSetClusterParameter(conn, update) {
    const paramName = update._id;
    let updateCopy = Object.assign({}, update);
    delete updateCopy._id;
    delete updateCopy.clusterParameterTime;
    const setClusterParameterDoc = {
        [paramName]: updateCopy,
    };
    const adminDB = conn.getDB('admin');
    assert.commandWorked(adminDB.runCommand({setClusterParameter: setClusterParameterDoc}));
}
function runSetClusterParameter ( conn , update ) { const paramName = update . _id ; let updateCopy = Object . assign ( { } , update ) ; delete updateCopy . _id ; delete updateCopy . clusterParameterTime ; const setClusterParameterDoc = { [ paramName ] : updateCopy , } ; const adminDB = conn . getDB ( 'admin' ) ; assert . commandWorked ( adminDB . runCommand ( { setClusterParameter : setClusterParameterDoc } ) ) ; }
Upserts config.clusterParameters document with w:majority via setClusterParameter.
Upserts config . clusterParameters document with w : majority via setClusterParameter .