private void blindlyWriteToRelayLog(MySQLPacket packet,boolean extended) throws IOException {
  byte[] bytes=packet.getByteBuffer();
  int header;
  if (extended)   header=4;
 else   header=5;
  int writeLength=bytes.length - header;
  if (logger.isDebugEnabled()) {
    logger.debug("Writing packet to binlog: bytesLength=" + bytes.length + " writeLength="+ writeLength);
  }
  relayOutput.write(bytes,header,writeLength);
  relayOutput.flush();
  relayBytes+=writeLength;
  logPosition.setPosition(relayLog,relayBytes);
}

private void blindlyWriteToRelayLog ( MySQLPacket packet , boolean extended ) throws IOException { byte [ ] bytes = packet . getByteBuffer ( ) ; int header ; if ( extended ) header = 4 ; else header = 5 ; int writeLength = bytes . length - header ; if ( logger . isDebugEnabled ( ) ) { logger . debug ( "Writing packet to binlog: bytesLength=" + bytes . length + " writeLength=" + writeLength ) ; } relayOutput . write ( bytes , header , writeLength ) ; relayOutput . flush ( ) ; relayBytes += writeLength ; logPosition . setPosition ( relayLog , relayBytes ) ; }
writes data into the relay log file .
