diff options
author | unknown <sasha@mysql.sashanet.com> | 2001-11-10 22:24:12 -0700 |
---|---|---|
committer | unknown <sasha@mysql.sashanet.com> | 2001-11-10 22:24:12 -0700 |
commit | 640fadf2f86778d844835ab31f865545b74e131f (patch) | |
tree | 9303005b745dbcfba11b4ee43cd2971c956dc974 /sql/log_event.h | |
parent | 83aeee648aa923aa1ff1d4eb2e314347fb836d2d (diff) | |
download | mariadb-git-640fadf2f86778d844835ab31f865545b74e131f.tar.gz |
work to enable reading 3.23 logs - not yet finished
moved fail-safe replication routines from sql_repl.cc to repl_failsafe.cc
write start event only in the first log
client/mysqlbinlog.cc:
work to enable reading 3.23 logs
libmysql/Makefile.shared:
added mf_iocache2 to libmysqlclient - needed for mysqlbinlog
mysql-test/mysql-test-run.sh:
added --start-and-exit
mysql-test/r/rpl000002.result:
result clean-up
mysql-test/r/rpl000016.result:
result update
mysql-test/r/rpl_log.result:
result update
mysql-test/t/rpl000016.test:
test cleanup
mysys/mf_iocache.c:
fixed new bug
sql/log.cc:
write start event only on server start or after reset master
sql/log_event.cc:
work to enable reading 3.23 log format
sql/log_event.h:
work to enable reading 3.23 format
sql/repl_failsafe.cc:
code restructuring
sql/repl_failsafe.h:
re-organized code
sql/slave.cc:
check master version
sql/slave.h:
old_format member
sql/sql_class.h:
allow user to specify io cache type
need_start_event member to allow writing start event only in the first log
sql/sql_parse.cc:
code re-organization
sql/sql_repl.cc:
code reorganization
sql/sql_repl.h:
reorganized code
Diffstat (limited to 'sql/log_event.h')
-rw-r--r-- | sql/log_event.h | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/sql/log_event.h b/sql/log_event.h index 71f0f2a8575..9f9bb46d221 100644 --- a/sql/log_event.h +++ b/sql/log_event.h @@ -242,7 +242,7 @@ public: virtual Log_event_type get_type_code() = 0; virtual bool is_valid() = 0; virtual bool get_cache_stmt() { return 0; } - Log_event(const char* buf); + Log_event(const char* buf, bool old_format); #ifndef MYSQL_CLIENT Log_event(THD* thd_arg, uint16 flags_arg = 0); #endif @@ -268,12 +268,14 @@ public: #ifndef MYSQL_CLIENT // if mutex is 0, the read will proceed without mutex - static Log_event* read_log_event(IO_CACHE* file, pthread_mutex_t* log_lock); + static Log_event* read_log_event(IO_CACHE* file, + pthread_mutex_t* log_lock, + bool old_format); #else // avoid having to link mysqlbinlog against libpthread - static Log_event* read_log_event(IO_CACHE* file); + static Log_event* read_log_event(IO_CACHE* file, bool old_format); #endif static Log_event* read_log_event(const char* buf, int event_len, - const char **error); + const char **error, bool old_format); const char* get_type_str(); #ifndef MYSQL_CLIENT @@ -317,7 +319,7 @@ public: bool get_cache_stmt() { return cache_stmt; } #endif - Query_log_event(const char* buf, int event_len); + Query_log_event(const char* buf, int event_len, bool old_format); ~Query_log_event() { if (data_buf) @@ -411,7 +413,7 @@ public: int exec_event(NET* net, struct st_master_info* mi); #endif - Load_log_event(const char* buf, int event_len); + Load_log_event(const char* buf, int event_len, bool old_format); ~Load_log_event() { } @@ -451,7 +453,7 @@ public: memcpy(server_version, ::server_version, ST_SERVER_VER_LEN); } #endif - Start_log_event(const char* buf); + Start_log_event(const char* buf, bool old_format); ~Start_log_event() {} Log_event_type get_type_code() { return START_EVENT;} int write_data(IO_CACHE* file); @@ -479,7 +481,7 @@ public: :Log_event(thd_arg),val(val_arg),type(type_arg) {} #endif - Intvar_log_event(const char* buf); + Intvar_log_event(const char* buf, bool old_format); ~Intvar_log_event() {} Log_event_type get_type_code() { return INTVAR_EVENT;} const char* get_var_type_name(); @@ -503,7 +505,8 @@ public: Stop_log_event() :Log_event((THD*)0) {} #endif - Stop_log_event(const char* buf):Log_event(buf) + Stop_log_event(const char* buf, bool old_format):Log_event(buf, + old_format) { } ~Stop_log_event() {} @@ -534,7 +537,7 @@ public: alloced(0) {} #endif - Rotate_log_event(const char* buf, int event_len); + Rotate_log_event(const char* buf, int event_len, bool old_format); ~Rotate_log_event() { if (alloced) @@ -686,7 +689,6 @@ public: #endif }; - #endif |