diff options
| author | Sergei Petrunia <sergey@mariadb.com> | 2023-02-21 12:04:37 +0300 |
|---|---|---|
| committer | Sergei Petrunia <sergey@mariadb.com> | 2023-02-21 15:27:23 +0300 |
| commit | d61bc94fa02c76fc3d9b0acf22d59377fc4a5d0a (patch) | |
| tree | bd4db2caeded6760982093f3ddc745ac6c1085da /sql/sql_select.h | |
| parent | d5d7c8ba96fbf8800d7273034f56cbb39f379982 (diff) | |
| download | mariadb-git-d61bc94fa02c76fc3d9b0acf22d59377fc4a5d0a.tar.gz | |
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.
Diffstat (limited to 'sql/sql_select.h')
| -rw-r--r-- | sql/sql_select.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/sql_select.h b/sql/sql_select.h index a45c4b8ffc2..032437defc0 100644 --- a/sql/sql_select.h +++ b/sql/sql_select.h @@ -1022,6 +1022,7 @@ public: */ double read_time; + /* record combinations before this table */ double loops; double prefix_record_count; |
