diff options
author | heikki@hundin.mysql.fi <> | 2004-05-14 16:48:56 +0300 |
---|---|---|
committer | heikki@hundin.mysql.fi <> | 2004-05-14 16:48:56 +0300 |
commit | 02f51ccf2d16bd3525e1446553ab74c00af695f1 (patch) | |
tree | b754d8cebf93bbb70cb8401e05e31ea14aeecf85 /sql/log_event.cc | |
parent | b4ae2577f03888995cb5a78a4bd532d0272349f6 (diff) | |
download | mariadb-git-02f51ccf2d16bd3525e1446553ab74c00af695f1.tar.gz |
Many files:
Fix remaining cases of Bug #3596: fix possible races caused by an obsolete value of thd->query_length in SHOW PROCESSLIST and SHOW INNODB STATUS; this fix depends on the fact that thd->query is always set to NULL before setting it to point to a new query
Diffstat (limited to 'sql/log_event.cc')
-rw-r--r-- | sql/log_event.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/log_event.cc b/sql/log_event.cc index 7817ccff3d7..f84c8d1f579 100644 --- a/sql/log_event.cc +++ b/sql/log_event.cc @@ -1929,6 +1929,7 @@ end: VOID(pthread_mutex_lock(&LOCK_thread_count)); thd->db= 0; // prevent db from being freed thd->query= 0; // just to be sure + thd->query_length= 0; VOID(pthread_mutex_unlock(&LOCK_thread_count)); // assume no convert for next query unless set explictly thd->variables.convert_set = 0; |