diff options
author | unknown <sasha@mysql.sashanet.com> | 2001-06-19 15:03:48 -0600 |
---|---|---|
committer | unknown <sasha@mysql.sashanet.com> | 2001-06-19 15:03:48 -0600 |
commit | 5e2639830e1d5bad975204feeba94013551f337f (patch) | |
tree | 109c8e44d015111333257be2ef3b9a11d2b6e0e7 /sql/sql_class.h | |
parent | c498794d70d10a8219163d4b089b37ed5038d40a (diff) | |
download | mariadb-git-5e2639830e1d5bad975204feeba94013551f337f.tar.gz |
Added event sequence number and flags to binlog
Documented/cleaned up log event code
Updated tests
mysql-test/r/rpl000014.result:
new binlog format
mysql-test/r/rpl000015.result:
new binlog format
mysql-test/r/rpl000016.result:
new binlog format
mysql-test/std_data/master-bin.001:
new binlog format
mysql-test/t/rpl000014.test:
new binlog format
sql/log.cc:
new binlog format
sql/log_event.cc:
new binlog format
sql/log_event.h:
new binlog format
sql/sql_class.cc:
new binlog format
sql/sql_class.h:
new binlog format
sql/sql_repl.cc:
new binlog format
Diffstat (limited to 'sql/sql_class.h')
-rw-r--r-- | sql/sql_class.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sql/sql_class.h b/sql/sql_class.h index 3e10e8d28e4..1cc1dab8cae 100644 --- a/sql/sql_class.h +++ b/sql/sql_class.h @@ -63,11 +63,15 @@ class MYSQL_LOG { char time_buff[20],db[NAME_LEN+1]; char log_file_name[FN_REFLEN],index_file_name[FN_REFLEN]; bool write_error,inited; + uint32 log_seq; // current event sequence number + // needed this for binlog bool no_rotate; // for binlog - if log name can never change // we should not try to rotate it or write any rotation events // the user should use FLUSH MASTER instead of FLUSH LOGS for // purging + friend class Log_event; + public: MYSQL_LOG(); ~MYSQL_LOG(); @@ -243,6 +247,7 @@ public: struct st_my_thread_var *mysys_var; enum enum_server_command command; uint32 server_id; + uint32 log_seq; const char *where; time_t start_time,time_after_lock,user_time; time_t connect_time,thr_create_time; // track down slow pthread_create |