jstests/replsets/libs/initial_sync_test.js
/**
     * Return an instance of ReplSetTest initialized with a standard two-node replica set running
     * with the latest version.
     */
Return an instance of ReplSetTest initialized with a standard two-node replica set running
with the latest version.
Return an instance of ReplSetTest initialized with a standard two - node replica set running with the latest version .
function performSetup() {
        let nodeOptions = {};
        if (TestData.logComponentVerbosity) {
            nodeOptions["setParameter"] = {
                "logComponentVerbosity": tojsononeline(TestData.logComponentVerbosity),
                "replBatchLimitBytes": replBatchLimitBytes,
            };
        }
        let replSet = new ReplSetTest({
            name: name,
            nodes: [{}, {rsConfig: {priority: 0, votes: 0}}],
            nodeOptions: nodeOptions
        });
        replSet.startSet();
        replSet.initiate();
        return replSet;
    }
function performSetup ( ) { let nodeOptions = { } ; if ( TestData . logComponentVerbosity ) { nodeOptions [ "setParameter" ] = { "logComponentVerbosity" : tojsononeline ( TestData . logComponentVerbosity ) , "replBatchLimitBytes" : replBatchLimitBytes , } ; } let replSet = new ReplSetTest ( { name : name , nodes : [ { } , { rsConfig : { priority : 0 , votes : 0 } } ] , nodeOptions : nodeOptions } ) ; replSet . startSet ( ) ; replSet . initiate ( ) ; return replSet ; }
Return an instance of ReplSetTest initialized with a standard two-node replica set running
 with the latest version.
Return an instance of ReplSetTest initialized with a standard two - node replica set running with the latest version .