1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-27 18:02:13 +03:00

MDEV-10486 MariaDB 10.x does not update rows_examined in performance_schema tables.

Save the rows_examined counter before it gets emptied.
This commit is contained in:
Alexey Botchkov
2017-12-18 15:21:50 +04:00
parent ef9e78c9d4
commit 6ee9cba745
3 changed files with 34 additions and 2 deletions

View File

@ -1957,11 +1957,12 @@ bool dispatch_command(enum enum_server_command command, THD *thd,
THD_STAGE_INFO(thd, stage_cleaning_up);
thd->reset_query();
thd->set_examined_row_count(0); // For processlist
thd->set_command(COM_SLEEP);
/* Performance Schema Interface instrumentation, end */
MYSQL_END_STATEMENT(thd->m_statement_psi, thd->get_stmt_da());
thd->set_examined_row_count(0); // For processlist
thd->set_command(COM_SLEEP);
thd->m_statement_psi= NULL;
thd->m_digest= NULL;