summaryrefslogtreecommitdiff
path: root/sql/sql_repl.h
Commit message (Collapse)AuthorAgeFilesLines
* work to enable reading 3.23 logs - not yet finishedunknown2001-11-101-10/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* cleanupunknown2001-10-231-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | removal of duplicate code in mf_iocache.cc work on failsafe replication work on SEQ_READ_APPEND io cache include/my_sys.h: updates for SEQ_READ_APPEND libmysql/Makefile.am: fix for mysys/mf_iocache.c libmysql/libmysql.c: updates for new format of SHOW SLAVE HOSTS mysql-test/r/rpl000001.result: test replication of LOAD DATA LOCAL INFILE mysql-test/r/rpl000002.result: updated test result mysql-test/t/rpl000001.test: test LOAD DATA LOCAL INFILE mysys/mf_iocache.c: cleanup to remove duplicate functionality some work on SEQ_READ_APPEND sql/mf_iocache.cc: cleanup to remove duplicate functionality sql/repl_failsafe.cc: more work on failsafe replication sql/repl_failsafe.h: more work on failsafe replication sql/slave.cc: cleanup more work on failsafe replication sql/sql_load.cc: fixed bug on replicating empty file loads got LOAD DATA LOCAL INFILE to work again, and to be replicated sql/sql_repl.cc: cleanup more work on failsafe replication sql/sql_repl.h: more work on failsafe replication
* changed manager to use my_net_*unknown2001-10-121-0/+2
| | | | | | | | | | | | | | | | | | | | | | fixed bug in master - unregister slaves when they disconnect client/mysqlmanagerc.c: changed default port include/mysql.h: use my_net_* libmysql/manager.c: use my_net_* mysql-test/mysql-test-run.sh: added support for client strace sql/sql_parse.cc: unregister slaves on disconnect sql/sql_repl.cc: unregister slaves on disconnect sql/sql_repl.h: unregister slaves on disconnect tools/mysqlmanager.c: changed to use my_net_*
* LOAD DATA INFILE is now replicated properly, except for cleanup on unknown2001-08-031-1/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Stop event and bugs the test suite could not catch Did some big restructuring of binlog event classes - most important change is that now each event class has exec_event method and one does not need to modify slave core code to add a new event. Slave code is now much smaller and easier to read include/my_sys.h: pre_code and arg in IO_CACHE mysql-test/r/rpl_log.result: updated result for LOAD DATA INFILE fix mysys/mf_iocache.c: pre_close routine and arg pointer for callback magic sql/log.cc: changed MYSQL_LOG so that write() method is for generic Log_event - removed redundant code sql/log_event.cc: added classes for file events added exec_event() method to all classes restructured/cleaned up event classes sql/log_event.h: added classes for file events added exec_event() method to all classes restructured/cleaned up event classes sql/mf_iocache.cc: pre_close/arg sql/mysqld.cc: added slave-load-tmpdir and old-rpl-compat options sql/slave.cc: changed exec_event() to use Log_event::exec_event() some routines are now needed in log_event.cc and cannot be static/inline general cleanup sql/slave.h: some routines are now extern because they are called from log_event.cc sql/sql_class.cc: added slave_net sql/sql_class.h: added slave_net to THD MYSQL_LOG::write now handles generic Log_event sql/sql_load.cc: changes for new handling of LOAD DATA INFILE replication sql/sql_repl.cc: added log_loaded_block() callback for IO_CACHE sql/sql_repl.h: added structure to pass args to IO_CACHE callback from mysql_load
* SHOW NEW MASTER FOR SLAVE WITH ...unknown2001-07-041-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | include/mysqld_error.h: new error message mysql-test/r/rpl_log.result: updated results mysql-test/t/rpl_log.test: test show new master for slave sql/lex.h: show new master for slave sql/share/czech/errmsg.txt: new error sql/share/danish/errmsg.txt: new error sql/share/dutch/errmsg.txt: new error sql/share/english/errmsg.txt: new error sql/share/estonian/errmsg.txt: new error sql/share/french/errmsg.txt: new error sql/share/german/errmsg.txt: new error sql/share/greek/errmsg.txt: new error sql/share/hungarian/errmsg.txt: new error sql/share/italian/errmsg.txt: new error sql/share/japanese/errmsg.txt: new error sql/share/korean/errmsg.txt: new error sql/share/norwegian-ny/errmsg.txt: new error sql/share/norwegian/errmsg.txt: new error sql/share/polish/errmsg.txt: new error sql/share/portuguese/errmsg.txt: new error sql/share/romanian/errmsg.txt: new error sql/share/russian/errmsg.txt: new error sql/share/slovak/errmsg.txt: new error sql/share/spanish/errmsg.txt: new error sql/share/swedish/errmsg.txt: new error sql/sql_lex.h: show new master for slave sql/sql_parse.cc: show new master for slave sql/sql_repl.cc: show new master for slave sql/sql_repl.h: show new master for slave sql/sql_yacc.yy: show new master for slave
* merged with 3.23 replication updatesunknown2001-06-281-0/+5
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | mysql-test/r/type_float.result: Auto merged sql/sql_repl.h: Auto merged BitKeeper/triggers/post-commit: merged with 3.23 updates sql/mysqld.cc: merged sql/slave.cc: merged sql/sql_repl.cc: merged
| * fixed message in post-commit triggerunknown2001-06-281-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | added debugging options to master to behave sporadically, and a test case to make sure the slave can deal with it BitKeeper/triggers/post-commit: fixed message sql/mysqld.cc: added debugging options to force the master to occasionally break replication sql/slave.cc: cosmetic change to improve readability sql/sql_repl.cc: support for --sporadic-binlog-dump-fail and --max-binlog-dump-events sql/sql_repl.h: support for --sporadic-binlog-dump-fail and --max-binlog-dump-events
* | added SHOW BINLOG EVENTSunknown2001-06-211-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | fixed log sequence bugs fixed bugs in handling Slave event added test case with SHOW BINLOG EVENTS have not fixed all the bugs - found some that are also in 3.23, will fix them there first, then do pull and cleanup will not push this changeset include/mysqld_error.h: new error mysql-test/mysql-test-run.sh: use quotes in expr sql/lex.h: SHOW BINLOG EVENTS sql/log.cc: fixed log sequence bugs sql/log_event.cc: SHOW BINLOG EVENTS fixed bugs Slave event handling sql/log_event.h: SHOW BINLOG EVENTS sql/share/english/errmsg.txt: SHOW BINLOG EVENTS sql/sql_lex.h: SHOW BINLOG EVENTS sql/sql_parse.cc: SHOW BINLOG EVENTS sql/sql_repl.cc: SHOW BINLOG EVENTS sql/sql_repl.h: SHOW BINLOG EVENTS sql/sql_yacc.yy: SHOW BINLOG EVENTS
* | do not show user/pass for slave unless running with show-slave-auth-infounknown2001-06-011-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | cleanup of register_slave_on_master() mysql-test/r/rpl000002.result: new output of show slave hosts sql/mysqld.cc: user and password are shown in show slave hosts only if show-slave-auth-info option is on sql/slave.cc: cleanup of register_slave_on_master() sql/sql_repl.cc: do not show user/pass for slave unless running with show-slave-auth-info sql/sql_repl.h: show-slave-auth-info
* | A slave now can optionally register with the master providing the unknown2001-05-301-0/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | info on how to connect to the slave for the clients that connect to the master, but would like to know where the slaves are include/mysql_com.h: register slaves mysql-test/mysql-test-run.sh: parameters to test slave registration mysql-test/r/rpl000002.result: test of slave registration mysql-test/t/rpl000002.test: test slave registration sql/mysql_priv.h: slave registration sql/mysqld.cc: slave registration sql/slave.cc: slave registration sql/slave.h: slave registration sql/sql_lex.h: slave registration sql/sql_parse.cc: slave registration sql/sql_repl.cc: slave registration sql/sql_repl.h: slave registration sql/sql_yacc.yy: slave registration
* | updates for LOAD DATA FROM MASTER + some cleanup of replication codeunknown2001-05-281-0/+2
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | include/mysqld_error.h: new errors mysql-test/r/rpl000009.result: test load data from master mysql-test/t/rpl000009.test: test load data from master sql/mini_client.cc: extra functionality needed for load data from master and other things sql/mini_client.h: addition to API sql/mysql_priv.h: mysql_create_db()/mysql_rm_db() now return a value sql/share/english/errmsg.txt: more error messages sql/slave.cc: cleanup of fetch_nx_table() sql/slave.h: cleanup of fetch_nx_table() sql/sql_base.cc: remove unused code originally written for retrieving a non-existent table in slave thread sql/sql_class.cc: remove unused replication variables sql/sql_class.h: remove unused replication variabled sql/sql_db.cc: make mysql_create_db()/mysql_rm_db() work with thd == 0 (do not write messages to the net) and instead return success/error sql/sql_lex.h: added SQLCOM_LOAD_MASTER_DATA sql/sql_parse.cc: LOAD MASTER DATA, cleanup of LOAD TABLE FROM MASTER sql/sql_repl.cc: LOAD DATA FROM MASTER sql/sql_repl.h: LOAD DATA FROM MASTER sql/sql_yacc.yy: LOAD DATA FROM MASTER
* fixed redundant repetition of use db in mysqlbinlogunknown2001-04-241-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | added support for virtual master ( replicating from a directory with binlogs) test case for backup/restore with virtual master client/mysqltest.c: fix to accomodate for new test case mysql-test/mysql-test-run.sh: do not automagically start slave sql/log.cc: support for virtual master sql/log_event.cc: fix for mysqlbinlog sql/log_event.h: fix for mysqlbinlog sql/mysqlbinlog.cc: fix for mysqlbinlog sql/slave.cc: virtual master sql/slave.h: virtual master sql/sql_class.h: clean-up/fixes for virtual master sql/sql_repl.cc: cleanup/fixes for virtual master sql/sql_repl.h: virtual master
* sql/mysqld.ccunknown2000-12-081-0/+2
| | | | | | | | | | | | | | | | fixed auto set of server id sql/sql_repl.cc do not allow slave to replicate if master id was not supplied sql/sql_repl.h fix for server_id sql/mysqld.cc: fixed auto set of server id sql/sql_repl.cc: do not allow slave to replicate if master id was not supplied sql/sql_repl.h: fix for server_id
* laptop commit, syncing with the repostitory. Fixed some bad bugs in replicationunknown2000-11-111-4/+2
| | | | | | | | | | | | | | | | | | | | | BUILD/compile-pentium-debug: added -DEXTRA_DEBUG sql/Makefile.am: added slave.h sql/log_event.h: max_buf -> event_len in read_log_event sql/mysql_priv.h: moved the slave part to slave.h sql/mysqld.cc: changes for replcate_do/ignore_table ( does not work yet) sql/slave.cc: removed the stuff covered by slave.h sql/sql_class.h: moved slave stuff to slave.h sql/sql_repl.h: removed stuff covered by slave.h BitKeeper/etc/logging_ok: Logging to logging@openlogging.org accepted
* fixed --skip-slave-thread bugunknown2000-10-261-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | added PURGE MASTER LOGS TO and SHOW MASTER LOGS fixed the output of SHOW MASTER STATUS updated docs Docs/manual.texi: Update for PURGE MASTER LOGS TO, SHOW MASTER LOGS sql/lex.h: added PURGE sql/log.cc: update for PURGE BitKeeper/etc/ignore: Added include/.my_sys.h.swp PENDING/2000-10-25.01 PENDING/2000-10-25.02 support-files/mysql-3.23.27-beta.spec to the ignore list sql/mysqld.cc: fixed bug in --skip-slave-start sql/sql_class.cc: added linfo to THD sql/sql_class.h: updates for PURGE sql/sql_lex.h: updates for PURGE sql/sql_parse.cc: updates for PURGE sql/sql_repl.cc: updates for PURGE sql/sql_repl.h: updates for PURGE sql/sql_yacc.yy: updates for PURGE
* added sql_repl.* officially - fixing an oops - forgot to actually addunknown2000-10-011-0/+21
it earlier