summaryrefslogtreecommitdiff
path: root/sql/event_executor.cc
diff options
context:
space:
mode:
Diffstat (limited to 'sql/event_executor.cc')
-rw-r--r--sql/event_executor.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/sql/event_executor.cc b/sql/event_executor.cc
index 4eb92f9e430..dbbff2a8c58 100644
--- a/sql/event_executor.cc
+++ b/sql/event_executor.cc
@@ -348,7 +348,8 @@ event_executor_main(void *arg)
TIME_to_ulonglong_datetime(&et->execute_at)));
et->update_fields(thd);
- DBUG_PRINT("info", (" Spawning a thread %d", ++iter_num));
+ ++iter_num;
+ DBUG_PRINT("info", (" Spawning a thread %d", iter_num));
#ifndef DBUG_FAULTY_THR
if (pthread_create(&th, NULL, event_executor_worker, (void*)et))
{
@@ -461,7 +462,7 @@ event_executor_worker(void *event_void)
thd->mem_root= &worker_mem_root;
pthread_detach(pthread_self());
-
+
if (init_event_thread(thd))
goto err;