#!/usr/bin/perl -w #require '_h2ph_pre.ph'; unless(defined(&_log_event_h)) { eval 'sub _log_event_h () {1;}' unless defined(&_log_event_h); eval 'sub LOG_READ_EOF () {-1;}' unless defined(&LOG_READ_EOF); eval 'sub LOG_READ_BOGUS () {-2;}' unless defined(&LOG_READ_BOGUS); eval 'sub LOG_READ_IO () {-3;}' unless defined(&LOG_READ_IO); eval 'sub LOG_READ_MEM () {-5;}' unless defined(&LOG_READ_MEM); eval 'sub LOG_READ_TRUNC () {-6;}' unless defined(&LOG_READ_TRUNC); eval 'sub LOG_READ_TOO_LARGE () {-7;}' unless defined(&LOG_READ_TOO_LARGE); eval 'sub LOG_EVENT_OFFSET () {4;}' unless defined(&LOG_EVENT_OFFSET); eval 'sub BINLOG_VERSION () {3;}' unless defined(&BINLOG_VERSION); eval 'sub ST_SERVER_VER_LEN () {50;}' unless defined(&ST_SERVER_VER_LEN); eval 'sub DUMPFILE_FLAG () {0x1;}' unless defined(&DUMPFILE_FLAG); eval 'sub OPT_ENCLOSED_FLAG () {0x2;}' unless defined(&OPT_ENCLOSED_FLAG); eval 'sub REPLACE_FLAG () {0x4;}' unless defined(&REPLACE_FLAG); eval 'sub IGNORE_FLAG () {0x8;}' unless defined(&IGNORE_FLAG); eval 'sub FIELD_TERM_EMPTY () {0x1;}' unless defined(&FIELD_TERM_EMPTY); eval 'sub ENCLOSED_EMPTY () {0x2;}' unless defined(&ENCLOSED_EMPTY); eval 'sub LINE_TERM_EMPTY () {0x4;}' unless defined(&LINE_TERM_EMPTY); eval 'sub LINE_START_EMPTY () {0x8;}' unless defined(&LINE_START_EMPTY); eval 'sub ESCAPED_EMPTY () {0x10;}' unless defined(&ESCAPED_EMPTY); eval 'sub NUM_LOAD_DELIM_STRS () {5;}' unless defined(&NUM_LOAD_DELIM_STRS); eval 'sub LOG_EVENT_HEADER_LEN () {19;}' unless defined(&LOG_EVENT_HEADER_LEN); eval 'sub OLD_HEADER_LEN () {13;}' unless defined(&OLD_HEADER_LEN); eval 'sub QUERY_HEADER_LEN () {(4+ 4+ 1+ 2);}' unless defined(&QUERY_HEADER_LEN); eval 'sub LOAD_HEADER_LEN () {(4+ 4+ 4+ 1+1+ 4);}' unless defined(&LOAD_HEADER_LEN); eval 'sub START_HEADER_LEN () {(2+ &ST_SERVER_VER_LEN + 4);}' unless defined(&START_HEADER_LEN); eval 'sub ROTATE_HEADER_LEN () {8;}' unless defined(&ROTATE_HEADER_LEN); eval 'sub CREATE_FILE_HEADER_LEN () {4;}' unless defined(&CREATE_FILE_HEADER_LEN); eval 'sub APPEND_BLOCK_HEADER_LEN () {4;}' unless defined(&APPEND_BLOCK_HEADER_LEN); eval 'sub EXEC_LOAD_HEADER_LEN () {4;}' unless defined(&EXEC_LOAD_HEADER_LEN); eval 'sub DELETE_FILE_HEADER_LEN () {4;}' unless defined(&DELETE_FILE_HEADER_LEN); eval 'sub EVENT_TYPE_OFFSET () {4;}' unless defined(&EVENT_TYPE_OFFSET); eval 'sub SERVER_ID_OFFSET () {5;}' unless defined(&SERVER_ID_OFFSET); eval 'sub EVENT_LEN_OFFSET () {9;}' unless defined(&EVENT_LEN_OFFSET); eval 'sub LOG_POS_OFFSET () {13;}' unless defined(&LOG_POS_OFFSET); eval 'sub FLAGS_OFFSET () {17;}' unless defined(&FLAGS_OFFSET); eval 'sub ST_BINLOG_VER_OFFSET () {0;}' unless defined(&ST_BINLOG_VER_OFFSET); eval 'sub ST_SERVER_VER_OFFSET () {2;}' unless defined(&ST_SERVER_VER_OFFSET); eval 'sub ST_CREATED_OFFSET () {( &ST_SERVER_VER_OFFSET + &ST_SERVER_VER_LEN);}' unless defined(&ST_CREATED_OFFSET); eval 'sub SL_MASTER_PORT_OFFSET () {8;}' unless defined(&SL_MASTER_PORT_OFFSET); eval 'sub SL_MASTER_POS_OFFSET () {0;}' unless defined(&SL_MASTER_POS_OFFSET); eval 'sub SL_MASTER_HOST_OFFSET () {10;}' unless defined(&SL_MASTER_HOST_OFFSET); eval 'sub Q_THREAD_ID_OFFSET () {0;}' unless defined(&Q_THREAD_ID_OFFSET); eval 'sub Q_EXEC_TIME_OFFSET () {4;}' unless defined(&Q_EXEC_TIME_OFFSET); eval 'sub Q_DB_LEN_OFFSET () {8;}' unless defined(&Q_DB_LEN_OFFSET); eval 'sub Q_ERR_CODE_OFFSET () {9;}' unless defined(&Q_ERR_CODE_OFFSET); eval 'sub Q_DATA_OFFSET () { &QUERY_HEADER_LEN;}' unless defined(&Q_DATA_OFFSET); eval 'sub I_TYPE_OFFSET () {0;}' unless defined(&I_TYPE_OFFSET); eval 'sub I_VAL_OFFSET () {1;}' unless defined(&I_VAL_OFFSET); eval 'sub RAND_SEED1_OFFSET () {0;}' unless defined(&RAND_SEED1_OFFSET); eval 'sub RAND_SEED2_OFFSET () {8;}' unless defined(&RAND_SEED2_OFFSET); eval 'sub L_THREAD_ID_OFFSET () {0;}' unless defined(&L_THREAD_ID_OFFSET); eval 'sub L_EXEC_TIME_OFFSET () {4;}' unless defined(&L_EXEC_TIME_OFFSET); eval 'sub L_SKIP_LINES_OFFSET () {8;}' unless defined(&L_SKIP_LINES_OFFSET); eval 'sub L_TBL_LEN_OFFSET () {12;}' unless defined(&L_TBL_LEN_OFFSET); eval 'sub L_DB_LEN_OFFSET () {13;}' unless defined(&L_DB_LEN_OFFSET); eval 'sub L_NUM_FIELDS_OFFSET () {14;}' unless defined(&L_NUM_FIELDS_OFFSET); eval 'sub L_SQL_EX_OFFSET () {18;}' unless defined(&L_SQL_EX_OFFSET); eval 'sub L_DATA_OFFSET () { &LOAD_HEADER_LEN;}' unless defined(&L_DATA_OFFSET); eval 'sub R_POS_OFFSET () {0;}' unless defined(&R_POS_OFFSET); eval 'sub R_IDENT_OFFSET () {8;}' unless defined(&R_IDENT_OFFSET); eval 'sub CF_FILE_ID_OFFSET () {0;}' unless defined(&CF_FILE_ID_OFFSET); eval 'sub CF_DATA_OFFSET () { &CREATE_FILE_HEADER_LEN;}' unless defined(&CF_DATA_OFFSET); eval 'sub AB_FILE_ID_OFFSET () {0;}' unless defined(&AB_FILE_ID_OFFSET); eval 'sub AB_DATA_OFFSET () { &APPEND_BLOCK_HEADER_LEN;}' unless defined(&AB_DATA_OFFSET); eval 'sub EL_FILE_ID_OFFSET () {0;}' unless defined(&EL_FILE_ID_OFFSET); eval 'sub DF_FILE_ID_OFFSET () {0;}' unless defined(&DF_FILE_ID_OFFSET); eval 'sub QUERY_EVENT_OVERHEAD () {( &LOG_EVENT_HEADER_LEN+ &QUERY_HEADER_LEN);}' unless defined(&QUERY_EVENT_OVERHEAD); eval 'sub QUERY_DATA_OFFSET () {( &LOG_EVENT_HEADER_LEN+ &QUERY_HEADER_LEN);}' unless defined(&QUERY_DATA_OFFSET); eval 'sub ROTATE_EVENT_OVERHEAD () {( &LOG_EVENT_HEADER_LEN+ &ROTATE_HEADER_LEN);}' unless defined(&ROTATE_EVENT_OVERHEAD); eval 'sub LOAD_EVENT_OVERHEAD () {( &LOG_EVENT_HEADER_LEN+ &LOAD_HEADER_LEN);}' unless defined(&LOAD_EVENT_OVERHEAD); eval 'sub CREATE_FILE_EVENT_OVERHEAD () {( &LOG_EVENT_HEADER_LEN+ + &LOAD_HEADER_LEN+ &CREATE_FILE_HEADER_LEN);}' unless defined(&CREATE_FILE_EVENT_OVERHEAD); eval 'sub DELETE_FILE_EVENT_OVERHEAD () {( &LOG_EVENT_HEADER_LEN+ &DELETE_FILE_HEADER_LEN);}' unless defined(&DELETE_FILE_EVENT_OVERHEAD); eval 'sub EXEC_LOAD_EVENT_OVERHEAD () {( &LOG_EVENT_HEADER_LEN+ &EXEC_LOAD_HEADER_LEN);}' unless defined(&EXEC_LOAD_EVENT_OVERHEAD); eval 'sub APPEND_BLOCK_EVENT_OVERHEAD () {( &LOG_EVENT_HEADER_LEN+ &APPEND_BLOCK_HEADER_LEN);}' unless defined(&APPEND_BLOCK_EVENT_OVERHEAD); eval 'sub BINLOG_MAGIC () {"\\xfe\\x62\\x69\\x6e";}' unless defined(&BINLOG_MAGIC); eval 'sub LOG_EVENT_TIME_F () {0x1;}' unless defined(&LOG_EVENT_TIME_F); eval 'sub LOG_EVENT_FORCED_ROTATE_F () {0x2;}' unless defined(&LOG_EVENT_FORCED_ROTATE_F); eval("sub UNKNOWN_EVENT () { 0; }") unless defined(&UNKNOWN_EVENT); eval("sub START_EVENT () { 1; }") unless defined(&START_EVENT); eval("sub QUERY_EVENT () { 2; }") unless defined(&QUERY_EVENT); eval("sub STOP_EVENT () { 3; }") unless defined(&STOP_EVENT); eval("sub ROTATE_EVENT () { 4; }") unless defined(&ROTATE_EVENT); eval("sub INTVAR_EVENT () { 5; }") unless defined(&INTVAR_EVENT); eval("sub LOAD_EVENT () { 6; }") unless defined(&LOAD_EVENT); eval("sub SLAVE_EVENT () { 7; }") unless defined(&SLAVE_EVENT); eval("sub CREATE_FILE_EVENT () { 8; }") unless defined(&CREATE_FILE_EVENT); eval("sub APPEND_BLOCK_EVENT () { 9; }") unless defined(&APPEND_BLOCK_EVENT); eval("sub EXEC_LOAD_EVENT () { 10; }") unless defined(&EXEC_LOAD_EVENT); eval("sub DELETE_FILE_EVENT () { 11; }") unless defined(&DELETE_FILE_EVENT); eval("sub NEW_LOAD_EVENT () { 12; }") unless defined(&NEW_LOAD_EVENT); eval("sub RAND_EVENT () { 13; }") unless defined(&RAND_EVENT); eval("sub INVALID_INT_EVENT () { 0; }") unless defined(&INVALID_INT_EVENT); eval("sub LAST_INSERT_ID_EVENT () { 1; }") unless defined(&LAST_INSERT_ID_EVENT); eval("sub INSERT_ID_EVENT () { 2; }") unless defined(&INSERT_ID_EVENT); } 1;