Skip to content

Commit b3f0164

Browse files
committed
Bug#20712046: SHOW PROCESSLIST AND PERFORMANCE_SCHEMA TABLES
DO NOT MASK PASSWORD FROM QUERY Post-push fix: Fix ASAN test failures. Change-Id: I9c48959a9e3ff4f01a89d2731e533447e25df66b Reviewed-by: Erlend Dahl <[email protected]>
1 parent d56aa60 commit b3f0164

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

sql/sql_parse.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1935,14 +1935,14 @@ bool dispatch_command(THD *thd, const COM_DATA *com_data,
19351935
thd->proc_info= 0;
19361936
thd->lex->sql_command= SQLCOM_END;
19371937

1938-
/* Prevent rewritten query from getting "stuck" in SHOW PROCESSLIST. */
1939-
thd->rewritten_query.mem_free();
1940-
19411938
/* Performance Schema Interface instrumentation, end */
19421939
MYSQL_END_STATEMENT(thd->m_statement_psi, thd->get_stmt_da());
19431940
thd->m_statement_psi= NULL;
19441941
thd->m_digest= NULL;
19451942

1943+
/* Prevent rewritten query from getting "stuck" in SHOW PROCESSLIST. */
1944+
thd->rewritten_query.mem_free();
1945+
19461946
thd_manager->dec_thread_running();
19471947
free_root(thd->mem_root,MYF(MY_KEEP_PREALLOC));
19481948

0 commit comments

Comments
 (0)