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/sql_class.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/sql_class.h')
-rw-r--r-- | sql/sql_class.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/sql/sql_class.h b/sql/sql_class.h index 53e20b3b6d2..698a90c1a28 100644 --- a/sql/sql_class.h +++ b/sql/sql_class.h @@ -72,15 +72,18 @@ class MYSQL_LOG { // we should not try to rotate it or write any rotation events // the user should use FLUSH MASTER instead of FLUSH LOGS for // purging - + enum cache_type io_cache_type; + bool need_start_event; friend class Log_event; public: MYSQL_LOG(); ~MYSQL_LOG(); pthread_mutex_t* get_log_lock() { return &LOCK_log; } + void set_need_start_event() { need_start_event = 1; } void set_index_file_name(const char* index_file_name = 0); - void init(enum_log_type log_type_arg); + void init(enum_log_type log_type_arg, + enum cache_type io_cache_type_arg = WRITE_CACHE); void open(const char *log_name,enum_log_type log_type, const char *new_name=0); void new_file(bool inside_mutex = 0); |