Another attempt to fix the valgrind warning in SHOW PROCESSLIST

(event_bugs.test)
This commit is contained in:
kostja@bodhi.(none) 2007-06-15 12:40:30 +04:00
parent b27172eb70
commit 9e6685dc74

View File

@ -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));