mirror of
https://github.com/MariaDB/server.git
synced 2025-01-29 02:05:57 +01:00
thd->query assignment moved out
of lock scope
This commit is contained in:
parent
116cf01024
commit
9396db013a
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue