jstests/replsets/libs/initial_sync_test.js
/**
     * Calls replSetGetStatus and checks if the node is in the provided state.
     */
Calls replSetGetStatus and checks if the node is in the provided state.
Calls replSetGetStatus and checks if the node is in the provided state .
function isNodeInState(node, state) {
        return state ===
            assert
                .commandWorkedOrFailedWithCode(
                    node.adminCommand({replSetGetStatus: 1, initialSync: 0}),
                    ErrorCodes.NotYetInitialized)
                .myState;
    }
function isNodeInState ( node , state ) { return state === assert . commandWorkedOrFailedWithCode ( node . adminCommand ( { replSetGetStatus : 1 , initialSync : 0 } ) , ErrorCodes . NotYetInitialized ) . myState ; }
Calls replSetGetStatus and checks if the node is in the provided state.
Calls replSetGetStatus and checks if the node is in the provided state .
// We suppress the initialSync field here, because initial sync is paused while holding the // mutex needed to report initial sync progress.