diff options
author | unknown <gluh@gluh.mysql.r18.ru> | 2003-04-23 18:00:07 +0500 |
---|---|---|
committer | unknown <gluh@gluh.mysql.r18.ru> | 2003-04-23 18:00:07 +0500 |
commit | a4c6d597a9aee3a140bd1e2f0964b2aa7f1d3a8a (patch) | |
tree | 630c0de1000122a73a4c374cfe78d36ff24860de /sql/log_event.h | |
parent | 4ef60cdbf446759a00c9da455351478ddff7f885 (diff) | |
download | mariadb-git-a4c6d597a9aee3a140bd1e2f0964b2aa7f1d3a8a.tar.gz |
Task 761:'mysqlbinlog should not die when reading
unknown event'
client/mysqlbinlog.cc:
Task 761:'mysqlbinlog should not die when reading
unknown event'
The 'force-read' option has been added.
sql/log_event.cc:
Task 761:'mysqlbinlog should not die when reading
unknown event'
The'Unknown_log_event' class has been added
sql/log_event.h:
Task 761:'mysqlbinlog should not die when reading
unknown event'
The 'Unknown_log_event' class has been added.
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 */ |