summaryrefslogtreecommitdiff
path: root/sql/sql_insert.cc
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mariadb.org>2016-05-14 13:22:47 +0200
committerSergei Golubchik <serg@mariadb.org>2016-06-04 09:06:00 +0200
commit562c1df7d97cb23145e09b3482fd18d49476752d (patch)
tree0d8e3d45c78dafd5854e8c6d6488b232f3f631a7 /sql/sql_insert.cc
parent7425610c81ca1329d72a97f57770e5b052d08079 (diff)
downloadmariadb-git-562c1df7d97cb23145e09b3482fd18d49476752d.tar.gz
cleanup: thread_count
move thread_count handling into THD: * increment thread_count in THD constructor * decrement thread_count in THD destructor * never modify thread_count directly!
Diffstat (limited to 'sql/sql_insert.cc')
-rw-r--r--sql/sql_insert.cc2
1 files changed, 0 insertions, 2 deletions
diff --git a/sql/sql_insert.cc b/sql/sql_insert.cc
index d9923c31468..9f63216af88 100644
--- a/sql/sql_insert.cc
+++ b/sql/sql_insert.cc
@@ -2073,7 +2073,6 @@ public:
delayed_lock= global_system_variables.low_priority_updates ?
TL_WRITE_LOW_PRIORITY : TL_WRITE;
mysql_mutex_unlock(&LOCK_thread_count);
- thread_safe_increment32(&thread_count);
DBUG_VOID_RETURN;
}
~Delayed_insert()
@@ -2104,7 +2103,6 @@ public:
my_free(thd.query());
thd.security_ctx->user= 0;
thd.security_ctx->host= 0;
- dec_thread_count();
}
/* The following is for checking when we can delete ourselves */