From db13afd89db4a415e2a77b0c200a1391ea2f03fe Mon Sep 17 00:00:00 2001 From: "serg@serg.mylan" <> Date: Wed, 9 Feb 2005 20:04:28 +0100 Subject: auto-ROLLBACK if binlog was not closed properly auto-commit on Xid_log_event --- sql/sql_repl.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'sql/sql_repl.h') diff --git a/sql/sql_repl.h b/sql/sql_repl.h index e336148379b..3ea14f260a7 100644 --- a/sql/sql_repl.h +++ b/sql/sql_repl.h @@ -36,7 +36,11 @@ extern I_List binlog_do_db, binlog_ignore_db; extern int max_binlog_dump_events; extern my_bool opt_sporadic_binlog_dump_fail; -#define KICK_SLAVE(thd) { pthread_mutex_lock(&(thd)->LOCK_delete); (thd)->awake(THD::NOT_KILLED); pthread_mutex_unlock(&(thd)->LOCK_delete); } +#define KICK_SLAVE(thd) do { \ + pthread_mutex_lock(&(thd)->LOCK_delete); \ + (thd)->awake(THD::NOT_KILLED); \ + pthread_mutex_unlock(&(thd)->LOCK_delete); \ + } while(0) int start_slave(THD* thd, MASTER_INFO* mi, bool net_report); int stop_slave(THD* thd, MASTER_INFO* mi, bool net_report); -- cgit v1.2.1