summaryrefslogtreecommitdiff
path: root/sql/repl_failsafe.cc
diff options
context:
space:
mode:
authorAlfranio Correia <alfranio.correia@sun.com>2010-01-14 16:02:55 +0000
committerAlfranio Correia <alfranio.correia@sun.com>2010-01-14 16:02:55 +0000
commitfb0ee3ab8ed62428d4b92f4134dcdee6a66fd0c6 (patch)
tree9909bd321761de0c8085748ac06b4a431906e670 /sql/repl_failsafe.cc
parent0f90f1dee7b45d47d3e1e77f66e4af74c795370f (diff)
parent9c820e637e886d0b67384e04107e4ca3f53f990b (diff)
downloadmariadb-git-fb0ee3ab8ed62428d4b92f4134dcdee6a66fd0c6.tar.gz
merge mysql-next-mr --> mysql-5.1-rpl-merge
Conflicts: Text conflict in sql/sql_insert.cc
Diffstat (limited to 'sql/repl_failsafe.cc')
-rw-r--r--sql/repl_failsafe.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/sql/repl_failsafe.cc b/sql/repl_failsafe.cc
index 4bea79f588b..5bf87dea90e 100644
--- a/sql/repl_failsafe.cc
+++ b/sql/repl_failsafe.cc
@@ -83,9 +83,9 @@ static int init_failsafe_rpl_thread(THD* thd)
my_net_init(&thd->net, 0);
thd->net.read_timeout = slave_net_timeout;
thd->max_client_packet_length=thd->net.max_packet;
- pthread_mutex_lock(&LOCK_thread_count);
+ mysql_mutex_lock(&LOCK_thread_count);
thd->thread_id= thd->variables.pseudo_thread_id= thread_id++;
- pthread_mutex_unlock(&LOCK_thread_count);
+ mysql_mutex_unlock(&LOCK_thread_count);
if (init_thr_lock() || thd->store_globals())
{
@@ -420,9 +420,9 @@ mi_inited:
err:
mysql_mutex_unlock(log_lock);
end_io_cache(&log);
- pthread_mutex_lock(&LOCK_thread_count);
+ mysql_mutex_lock(&LOCK_thread_count);
thd->current_linfo = 0;
- pthread_mutex_unlock(&LOCK_thread_count);
+ mysql_mutex_unlock(&LOCK_thread_count);
if (file >= 0)
mysql_file_close(file, MYF(MY_WME));
if (last_file >= 0 && last_file != file)