function _getLastOpTime(conn) {
        var replSetStatus =
            assert.commandWorked(conn.getDB("admin").runCommand({ replSetGetStatus: 1 }));
        var connStatus = replSetStatus.members.filter(m => m.self)[0];
        if (!connStatus.optime) {
            // Must be an ARBITER
            return undefined;
        }

        var myOpTime = connStatus.optime;
        return myOpTime.ts ? myOpTime.ts : myOpTime;
    }
/**
     * Returns the optime for the specified host by issuing replSetGetStatus.
     */
Returns the optime for the specified host by issuing replSetGetStatus.
Returns the optime for the specified host by issuing replSetGetStatus .
function _getLastOpTime(conn) {
        var replSetStatus =
            assert.commandWorked(conn.getDB("admin").runCommand({ replSetGetStatus: 1 }));
        var connStatus = replSetStatus.members.filter(m => m.self)[0];
        if (!connStatus.optime) {
            return undefined;
        }
        var myOpTime = connStatus.optime;
        return myOpTime.ts ? myOpTime.ts : myOpTime;
    }
function _getLastOpTime ( conn ) { var replSetStatus = assert . commandWorked ( conn . getDB ( "admin" ) . runCommand ( { replSetGetStatus : 1 } ) ) ; var connStatus = replSetStatus . members . filter ( m => m . self ) [ 0 ] ; if ( ! connStatus . optime ) { return undefined ; } var myOpTime = connStatus . optime ; return myOpTime . ts ? myOpTime . ts : myOpTime ; }
Returns the optime for the specified host by issuing replSetGetStatus.
Returns the optime for the specified host by issuing replSetGetStatus .
// Must be an ARBITER