diff options
author | gluh@gluh.mysql.r18.ru <> | 2003-04-23 18:00:07 +0500 |
---|---|---|
committer | gluh@gluh.mysql.r18.ru <> | 2003-04-23 18:00:07 +0500 |
commit | e6fe7d1bed2bce353863b1c6b8833b1d58d39267 (patch) | |
tree | 630c0de1000122a73a4c374cfe78d36ff24860de /sql/log_event.h | |
parent | 767f9a52f02d6b15a9ff73f934ce1da342a56b23 (diff) | |
download | mariadb-git-e6fe7d1bed2bce353863b1c6b8833b1d58d39267.tar.gz |
Task 761:'mysqlbinlog should not die when reading
unknown event'
Diffstat (limited to 'sql/log_event.h')
-rw-r--r-- | sql/log_event.h | 22 |
1 files changed, 18 insertions, 4 deletions
diff --git a/sql/log_event.h b/sql/log_event.h index 5b9f30b3afd..b46f78d2ce0 100644 --- a/sql/log_event.h +++ b/sql/log_event.h @@ -201,10 +201,10 @@ struct sql_ex_info enum Log_event_type { - START_EVENT = 1, QUERY_EVENT =2, STOP_EVENT=3, ROTATE_EVENT = 4, - INTVAR_EVENT=5, LOAD_EVENT=6, SLAVE_EVENT=7, CREATE_FILE_EVENT=8, - APPEND_BLOCK_EVENT=9, EXEC_LOAD_EVENT=10, DELETE_FILE_EVENT=11, - NEW_LOAD_EVENT=12, RAND_EVENT=13 + UNKNOWN_EVENT = 0, START_EVENT = 1, QUERY_EVENT =2, STOP_EVENT=3, + ROTATE_EVENT = 4, INTVAR_EVENT=5, LOAD_EVENT=6, SLAVE_EVENT=7, + CREATE_FILE_EVENT=8, APPEND_BLOCK_EVENT=9, EXEC_LOAD_EVENT=10, + DELETE_FILE_EVENT=11, NEW_LOAD_EVENT=12, RAND_EVENT=13 }; enum Int_event_type @@ -714,4 +714,18 @@ public: int write_data(IO_CACHE* file); }; +#ifdef MYSQL_CLIENT +class Unknown_log_event: public Log_event +{ +public: + Unknown_log_event(const char* buf, bool old_format): + Log_event(buf, old_format) + {} + ~Unknown_log_event() {} + void print(FILE* file, bool short_form= 0, char* last_db= 0); + Log_event_type get_type_code() { return UNKNOWN_EVENT;} + bool is_valid() { return 1; } +}; +#endif + #endif /* _log_event_h */ |