diff options
author | Sergei Golubchik <serg@mariadb.org> | 2015-01-12 17:03:45 +0100 |
---|---|---|
committer | Sergei Golubchik <serg@mariadb.org> | 2015-01-12 17:03:45 +0100 |
commit | b3e948b82a268d9c3630426727d6715e7e045f83 (patch) | |
tree | ca4eabec4abbbe0fd2da871ac6ca7b822d9a87d5 /sql/sql_insert.cc | |
parent | 67fc8f122342b6cfafaef586eceb4f022dbcce02 (diff) | |
download | mariadb-git-bb-10.1-atomics.tar.gz |
MDEV-7437 remove suport for "atomics" with rwlocksbb-10.1-atomics
Diffstat (limited to 'sql/sql_insert.cc')
-rw-r--r-- | sql/sql_insert.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/sql_insert.cc b/sql/sql_insert.cc index 050e28f98b4..2680019e3e2 100644 --- a/sql/sql_insert.cc +++ b/sql/sql_insert.cc @@ -2061,7 +2061,7 @@ public: thd.security_ctx->user= thd.security_ctx->host=0; delayed_insert_threads--; mysql_mutex_unlock(&LOCK_thread_count); - thread_safe_decrement32(&thread_count, &thread_count_lock); + thread_safe_decrement32(&thread_count); mysql_cond_broadcast(&COND_thread_count); /* Tell main we are ready */ } @@ -2197,7 +2197,7 @@ bool delayed_get_table(THD *thd, MDL_request *grl_protection_request, if (!(di= new Delayed_insert())) goto end_create; - thread_safe_increment32(&thread_count, &thread_count_lock); + thread_safe_increment32(&thread_count); /* Annotating delayed inserts is not supported. |