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

MDEV-30659 Server crash on EXPLAIN SELECT/SELECT on table with engine Aria for LooseScan Strategy

Amended patch from Monty:

The issue was that Loose_scan_opt::save_to_position() did not take
into account records_out from best_access_path()

Make sure that POSITION object filled by Loose_scan_opt::save_to_position()
has records_out not higher than any other possible access method.
This commit is contained in:
Sergei Petrunia
2023-02-21 12:04:37 +03:00
parent d5d7c8ba96
commit d61bc94fa0
6 changed files with 175 additions and 6 deletions

View File

@ -1022,6 +1022,7 @@ public:
*/
double read_time;
/* record combinations before this table */
double loops;
double prefix_record_count;