Ejemplo n.º 1
0
    void updateSlaveLocation( CurOp& curop, const char * ns , OpTime lastOp ){
        if ( lastOp.isNull() )
            return;
        
        assert( strstr( ns , "local.oplog.$" ) == ns );
        
        BSONObj rid = curop.getClient()->getRemoteID();
        if ( rid.isEmpty() )
            return;

        slaveTracking.update( rid , curop.getRemoteString( false ) , ns , lastOp );
    }