1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

accrue statistics to correct handler

This commit is contained in:
Dave Gosselin
2024-03-29 10:25:21 -04:00
committed by Sergei Petrunia
parent 0940a96940
commit a11a10191a
3 changed files with 17 additions and 10 deletions

View File

@ -3211,7 +3211,13 @@ protected:
ha_rows estimation_rows_to_insert;
handler *lookup_handler;
/* Statistics for the query. Updated if handler_stats.in_use is set */
/*
Statistics for the query. Prefer to use the handler_stats pointer
below rather than this object directly as the clone() method will
modify how stats are accounted by adjusting the handler_stats
pointer. Referring to active_handler_stats directly will yield
surprising and possibly incorrect results.
*/
ha_handler_stats active_handler_stats;
void set_handler_stats();
public: