mirror of
https://github.com/MariaDB/server.git
synced 2025-08-05 13:16:09 +03:00
Merge 10.9 into 10.10
This commit is contained in:
@@ -5829,6 +5829,7 @@ void THD::store_slow_query_state(Sub_statement_state *backup)
|
||||
backup->tmp_tables_disk_used= tmp_tables_disk_used;
|
||||
backup->tmp_tables_size= tmp_tables_size;
|
||||
backup->tmp_tables_used= tmp_tables_used;
|
||||
backup->handler_stats= handler_stats;
|
||||
}
|
||||
|
||||
/* Reset variables related to slow query log */
|
||||
@@ -5844,6 +5845,8 @@ void THD::reset_slow_query_state()
|
||||
tmp_tables_disk_used= 0;
|
||||
tmp_tables_size= 0;
|
||||
tmp_tables_used= 0;
|
||||
if ((variables.log_slow_verbosity & LOG_SLOW_VERBOSITY_ENGINE))
|
||||
handler_stats.reset();
|
||||
}
|
||||
|
||||
/*
|
||||
@@ -5862,6 +5865,8 @@ void THD::add_slow_query_state(Sub_statement_state *backup)
|
||||
tmp_tables_disk_used+= backup->tmp_tables_disk_used;
|
||||
tmp_tables_size+= backup->tmp_tables_size;
|
||||
tmp_tables_used+= backup->tmp_tables_used;
|
||||
if ((variables.log_slow_verbosity & LOG_SLOW_VERBOSITY_ENGINE))
|
||||
handler_stats.add(&backup->handler_stats);
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user