Another attempt to fix the valgrind warning in SHOW PROCESSLIST
(event_bugs.test)
This commit is contained in:
parent
b27172eb70
commit
9e6685dc74
@ -1900,6 +1900,9 @@ end:
|
||||
thd->lex->unit.cleanup();
|
||||
thd->end_statement();
|
||||
thd->cleanup_after_query();
|
||||
/* Avoid races with SHOW PROCESSLIST */
|
||||
thd->query_length= 0;
|
||||
thd->query= NULL;
|
||||
|
||||
DBUG_PRINT("info", ("EXECUTED %s.%s ret: %d", dbname.str, name.str, ret));
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user