diff options
author | Sergei Golubchik <serg@mariadb.org> | 2016-05-14 13:22:47 +0200 |
---|---|---|
committer | Sergei Golubchik <serg@mariadb.org> | 2016-06-04 09:06:00 +0200 |
commit | 562c1df7d97cb23145e09b3482fd18d49476752d (patch) | |
tree | 0d8e3d45c78dafd5854e8c6d6488b232f3f631a7 /sql/event_scheduler.cc | |
parent | 7425610c81ca1329d72a97f57770e5b052d08079 (diff) | |
download | mariadb-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/event_scheduler.cc')
-rw-r--r-- | sql/event_scheduler.cc | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/sql/event_scheduler.cc b/sql/event_scheduler.cc index ea0163e3f78..3450e60f85c 100644 --- a/sql/event_scheduler.cc +++ b/sql/event_scheduler.cc @@ -134,7 +134,6 @@ post_init_event_thread(THD *thd) return TRUE; } - thread_safe_increment32(&thread_count); add_to_active_threads(thd); inc_thread_running(); return FALSE; |