diff options
author | unknown <sasha@mysql.sashanet.com> | 2000-10-05 17:58:16 -0600 |
---|---|---|
committer | unknown <sasha@mysql.sashanet.com> | 2000-10-05 17:58:16 -0600 |
commit | 7e52afcd93f4113cf1a7d47e0d15fde6b3b06485 (patch) | |
tree | 94e00d7d13ba2935c9774b36bdfa820e0898f713 /sql/log_event.h | |
parent | 295c3d1fa9a1950d1ebf6832da896e36f483d692 (diff) | |
download | mariadb-git-7e52afcd93f4113cf1a7d47e0d15fde6b3b06485.tar.gz |
sql/log.cc
Added magic number to binlog
sql/log_event.cc
distinquish bogus data from truncated logs
sql/log_event.h
added magic number
added LOG_READ_TRUNC error
sql/mysqlbinlog.cc
fixed to handle magic number
added O_BINARY to my_fopen
sql/mysqld.cc
added code for replicate-rewrite-db
sql/slave.cc
replicate-rewrite-db
O_BINARY
handle magic
sql/sql_class.h
added i_string_pair class
sql/sql_repl.cc
added magic
better error messages
support-files/magic
added magic for binlog
Added test case for replication of queries with error
sql/log.cc:
Added magic number to binlog
sql/log_event.cc:
distinquish bogus data from truncated logs
sql/log_event.h:
added magic number
added LOG_READ_TRUNC error
sql/mysqlbinlog.cc:
fixed to handle magic number
added O_BINARY to my_fopen
sql/mysqld.cc:
added code for replicate-rewrite-db
sql/slave.cc:
replicate-rewrite-db
O_BINARY
handle magic
sql/sql_class.h:
added i_string_pair class
sql/sql_repl.cc:
added magic
better error messages
support-files/magic:
added magic for binlog
Diffstat (limited to 'sql/log_event.h')
-rw-r--r-- | sql/log_event.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sql/log_event.h b/sql/log_event.h index f0aecf47e8c..9875f7bddac 100644 --- a/sql/log_event.h +++ b/sql/log_event.h @@ -26,6 +26,7 @@ #define LOG_READ_BOGUS -2 #define LOG_READ_IO -3 #define LOG_READ_MEM -5 +#define LOG_READ_TRUNC -6 #define LOG_EVENT_OFFSET 4 #define BINLOG_VERSION 1 @@ -42,6 +43,7 @@ #define ROTATE_EVENT_OVERHEAD LOG_EVENT_HEADER_LEN #define LOAD_EVENT_OVERHEAD (LOG_EVENT_HEADER_LEN+LOAD_HEADER_LEN+sizeof(sql_ex_info)) +#define BINLOG_MAGIC "\xfe\x62\x69\x6e" enum Log_event_type { START_EVENT = 1, QUERY_EVENT =2, STOP_EVENT=3, ROTATE_EVENT = 4, INTVAR_EVENT=5, |