1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

MDEV-30820 slow log Rows_examined out of range

Fix row counters to be able to get any possible value.
This commit is contained in:
Oleksandr Byelkin
2023-07-13 13:39:54 +02:00
parent 5a7bcf1694
commit 2bf291ba59
17 changed files with 136 additions and 67 deletions

View File

@ -5681,6 +5681,8 @@ void THD::set_examined_row_count(ha_rows count)
void THD::inc_sent_row_count(ha_rows count)
{
m_sent_row_count+= count;
DBUG_EXECUTE_IF("debug_huge_number_of_examined_rows",
m_examined_row_count= (ULONGLONG_MAX - 1000000););
MYSQL_SET_STATEMENT_ROWS_SENT(m_statement_psi, m_sent_row_count);
}