summaryrefslogtreecommitdiff
path: root/plugin/feedback/sender_thread.cc
diff options
context:
space:
mode:
Diffstat (limited to 'plugin/feedback/sender_thread.cc')
-rw-r--r--plugin/feedback/sender_thread.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/plugin/feedback/sender_thread.cc b/plugin/feedback/sender_thread.cc
index 773ae887891..ebb5d3217ad 100644
--- a/plugin/feedback/sender_thread.cc
+++ b/plugin/feedback/sender_thread.cc
@@ -280,9 +280,7 @@ pthread_handler_t background_thread(void *arg __attribute__((unused)))
if (my_thread_init())
return 0;
- mysql_mutex_lock(&LOCK_thread_count);
- thd_thread_id= thread_id++;
- mysql_mutex_unlock(&LOCK_thread_count);
+ thd_thread_id= next_thread_id();
if (slept_ok(startup_interval))
{