summaryrefslogtreecommitdiff
path: root/sql/ha_ndbcluster_binlog.cc
diff options
context:
space:
mode:
authorKonstantin Osipov <kostja@sun.com>2010-02-04 20:34:15 +0300
committerKonstantin Osipov <kostja@sun.com>2010-02-04 20:34:15 +0300
commita9e22b589677df9035c73e61b80be0fc54d175a5 (patch)
treebf6e8bd7de75f7f9ec6dbf8903d150ed3511a6da /sql/ha_ndbcluster_binlog.cc
parent1edca1d7ef6a77d406ea2c1bcaf5d9aff2f4c04c (diff)
parent8dfc3fbbab0dc7b3be98a47423ae74a6b4933864 (diff)
downloadmariadb-git-a9e22b589677df9035c73e61b80be0fc54d175a5.tar.gz
Merge next-mr -> next-4284-merge.
Diffstat (limited to 'sql/ha_ndbcluster_binlog.cc')
-rw-r--r--sql/ha_ndbcluster_binlog.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/sql/ha_ndbcluster_binlog.cc b/sql/ha_ndbcluster_binlog.cc
index a736dc4536f..1e6d6e26697 100644
--- a/sql/ha_ndbcluster_binlog.cc
+++ b/sql/ha_ndbcluster_binlog.cc
@@ -3643,9 +3643,9 @@ pthread_handler_t ndb_binlog_thread_func(void *arg)
/* We need to set thd->thread_id before thd->store_globals, or it will
set an invalid value for thd->variables.pseudo_thread_id.
*/
- pthread_mutex_lock(&LOCK_thread_count);
+ mysql_mutex_lock(&LOCK_thread_count);
thd->thread_id= thread_id++;
- pthread_mutex_unlock(&LOCK_thread_count);
+ mysql_mutex_unlock(&LOCK_thread_count);
mysql_thread_set_psi_id(thd->thread_id);
@@ -3681,9 +3681,9 @@ pthread_handler_t ndb_binlog_thread_func(void *arg)
pthread_detach_this_thread();
thd->real_id= pthread_self();
- pthread_mutex_lock(&LOCK_thread_count);
+ mysql_mutex_lock(&LOCK_thread_count);
threads.append(thd);
- pthread_mutex_unlock(&LOCK_thread_count);
+ mysql_mutex_unlock(&LOCK_thread_count);
thd->lex->start_transaction_opt= 0;
if (!(s_ndb= new Ndb(g_ndb_cluster_connection, "")) ||