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 dd426c32545..d19d53b0974 100644
--- a/sql/event_executor.cc
+++ b/sql/event_executor.cc
@@ -338,7 +338,8 @@ event_executor_main(void *arg)
et->mark_last_executed();
et->compute_next_execution_time();
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))
{
@@ -451,7 +452,7 @@ event_executor_worker(void *event_void)
thd->mem_root= &worker_mem_root;
pthread_detach(pthread_self());
-
+
if (init_event_thread(thd))
goto err;