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

Fixed mdev-14880: Assertion `inj_cond_list.elements' failed

in JOIN::inject_best_splitting_cond

The value of SplM_opt_info::last_plan should be set to NULL
before any search for a splitting plan for a splittable
materialized table.
This commit is contained in:
Igor Babaev
2018-01-08 15:21:52 -08:00
parent 7349b9ab5e
commit c5ac1f953b
3 changed files with 88 additions and 1 deletions

View File

@ -922,6 +922,7 @@ SplM_plan_info * JOIN_TAB::choose_best_splitting(double record_count,
}
while (keyuse_ext->table == table);
}
spl_opt_info->last_plan= 0;
if (best_table)
{
/*
@ -963,7 +964,6 @@ SplM_plan_info * JOIN_TAB::choose_best_splitting(double record_count,
reset_validity_vars_for_keyuses(best_key_keyuse_ext_start, best_table,
best_key, remaining_tables, false);
}
spl_opt_info->last_plan= 0;
if (spl_plan)
{
if(record_count * spl_plan->cost < spl_opt_info->unsplit_cost)