From 9396db013a543b3f26e4c53e5e02244a9a2031d5 Mon Sep 17 00:00:00 2001 From: unknown Date: Fri, 31 Oct 2003 17:03:08 +0300 Subject: [PATCH] thd->query assignment moved out of lock scope --- sql/log_event.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sql/log_event.cc b/sql/log_event.cc index 36d2d33ade6..4f241c6b992 100644 --- a/sql/log_event.cc +++ b/sql/log_event.cc @@ -1826,8 +1826,8 @@ int Query_log_event::exec_event(struct st_relay_log_info* rli) thd->set_time((time_t)when); thd->current_tablenr = 0; thd->query_length= q_len; + thd->query= (char *) query; VOID(pthread_mutex_lock(&LOCK_thread_count)); - thd->query = (char*)query; thd->query_id = query_id++; VOID(pthread_mutex_unlock(&LOCK_thread_count)); thd->query_error = 0; // clear error