diff options
author | unknown <sasha@mysql.sashanet.com> | 2002-01-22 15:05:11 -0700 |
---|---|---|
committer | unknown <sasha@mysql.sashanet.com> | 2002-01-22 15:05:11 -0700 |
commit | 11f04648f2ff2deaa00fe85ea0317c2f3d6679a9 (patch) | |
tree | 18fac541370eed6d6619f07e64d288a8a6742b12 /sql/slave.h | |
parent | 1e0f2b7a4288b85d6b1d287056e2acfb3257f284 (diff) | |
download | mariadb-git-11f04648f2ff2deaa00fe85ea0317c2f3d6679a9.tar.gz |
post-merge fixes, including slave-skip-errors backport
fixed too quick timeout in mysql-test-run which caused a race with the
new server getting started before the old one completely finished
shutdown. This should fix the pid warning we've been getting as well as
inconsistent results when running tests with the manager
libmysqld/lib_sql.cc:
post-merge fix
mysql-test/mysql-test-run.sh:
fixed start/stop timeout and cleanup of log directory
mysql-test/r/rpl000014.result:
post-merge fix
mysql-test/r/rpl000015.result:
post-merge fix
mysql-test/r/rpl000016.result:
post-merge fix
mysql-test/r/rpl_log.result:
post-merge fix
sql/log_event.cc:
post-merge fix
sql/slave.cc:
post-merge fix
sql/slave.h:
post-merge fix
sql/sql_class.h:
post-merge fix
tools/mysqlmanager.c:
added debug message
Diffstat (limited to 'sql/slave.h')
-rw-r--r-- | sql/slave.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sql/slave.h b/sql/slave.h index 9ad5c75a556..f1dd0130500 100644 --- a/sql/slave.h +++ b/sql/slave.h @@ -5,6 +5,7 @@ #include "my_list.h" #define SLAVE_NET_TIMEOUT 3600 #define MAX_SLAVE_ERRMSG 1024 +#define MAX_SLAVE_ERROR 2000 /* The replication is accomplished by starting two threads - I/O @@ -24,12 +25,16 @@ */ extern ulong slave_net_timeout, master_retry_count; +extern MY_BITMAP slave_error_mask; +extern bool use_slave_mask; extern char* slave_load_tmpdir; extern my_string master_info_file,relay_log_info_file; extern my_string opt_relay_logname, opt_relaylog_index_name; extern bool opt_skip_slave_start; struct st_master_info; +// TODO: this needs to be redone, but for now it does not matter since +// we do not have multi-master yet. #define LOCK_ACTIVE_MI { pthread_mutex_lock(&LOCK_active_mi); \ ++active_mi_in_use; \ pthread_mutex_unlock(&LOCK_active_mi);} @@ -286,6 +291,7 @@ typedef struct st_table_rule_ent */ int init_slave(); +void init_slave_skip_errors(char* arg); int flush_master_info(MASTER_INFO* mi); int flush_relay_log_info(RELAY_LOG_INFO* rli); int register_slave_on_master(MYSQL* mysql); |