mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
Fixed mdev-15017 Server crashes in in st_join_table::fix_splitting
Do not apply splitting for constant tables.
This commit is contained in:
@ -4565,12 +4565,6 @@ make_join_statistics(JOIN *join, List<TABLE_LIST> &tables_list,
|
||||
DBUG_EXECUTE("opt", print_keyuse_array(keyuse_array););
|
||||
}
|
||||
|
||||
for (s= stat; s < stat_end; s++)
|
||||
{
|
||||
if (s->table->is_splittable())
|
||||
s->add_keyuses_for_splitting();
|
||||
}
|
||||
|
||||
join->const_table_map= no_rows_const_tables;
|
||||
join->const_tables= const_count;
|
||||
eliminate_tables(join);
|
||||
@ -4877,6 +4871,9 @@ make_join_statistics(JOIN *join, List<TABLE_LIST> &tables_list,
|
||||
s->scan_time();
|
||||
}
|
||||
|
||||
if (s->table->is_splittable())
|
||||
s->add_keyuses_for_splitting();
|
||||
|
||||
/*
|
||||
Set a max range of how many seeks we can expect when using keys
|
||||
This is can't be to high as otherwise we are likely to use
|
||||
|
Reference in New Issue
Block a user