summaryrefslogtreecommitdiff
path: root/sql/sql_repl.h
diff options
context:
space:
mode:
authormonty@hundin.mysql.fi <>2002-08-22 16:50:58 +0300
committermonty@hundin.mysql.fi <>2002-08-22 16:50:58 +0300
commitf36f9d00ff7d468f7d203430eb432977eb996a6e (patch)
tree1f4e2f579c25222692c7c0c682a036ad1e5b3404 /sql/sql_repl.h
parent4ab6d8c4f77a4a51d2d1fa46d4f2fc4e81d7dcee (diff)
downloadmariadb-git-f36f9d00ff7d468f7d203430eb432977eb996a6e.tar.gz
Fixed bug in wait_for_update() that I had introduced.
Changed option variables to my_bool (to avoid bugs in my_getopt()) Added new thread specific mutex LOCK_delete to be able to free LOCK_thread_count early. Changed usage of LOCK_thread_count -> LOCK_status for statistics variables
Diffstat (limited to 'sql/sql_repl.h')
-rw-r--r--sql/sql_repl.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/sql_repl.h b/sql/sql_repl.h
index af4fb33c9ef..1d919df7309 100644
--- a/sql/sql_repl.h
+++ b/sql/sql_repl.h
@@ -18,9 +18,9 @@ extern bool server_id_supplied;
extern I_List<i_string> binlog_do_db, binlog_ignore_db;
extern int max_binlog_dump_events;
-extern bool opt_sporadic_binlog_dump_fail;
+extern my_bool opt_sporadic_binlog_dump_fail;
-#define KICK_SLAVE(thd) thd->awake(0 /* do not prepare to die*/);
+#define KICK_SLAVE(thd) { pthread_mutex_lock(&(thd)->LOCK_delete); (thd)->awake(0 /* do not prepare to die*/); pthread_mutex_unlock(&(thd)->LOCK_delete); }
File open_binlog(IO_CACHE *log, const char *log_file_name,
const char **errmsg);