summaryrefslogtreecommitdiff
path: root/sql/opt_split.cc
diff options
context:
space:
mode:
authorIgor Babaev <igor@askmonty.org>2018-01-08 15:21:52 -0800
committerIgor Babaev <igor@askmonty.org>2018-01-08 15:22:17 -0800
commitc5ac1f953bf6d4279967f03a8343303f715ad7aa (patch)
tree10885c7baf121d8a06f9887000f898040b05daf2 /sql/opt_split.cc
parent7349b9ab5eda351737f9d63c445df0ade6dcbf9e (diff)
downloadmariadb-git-c5ac1f953bf6d4279967f03a8343303f715ad7aa.tar.gz
Fixed mdev-14880: Assertion `inj_cond_list.elements' failedbb-10.3-vicentiu-no-dtoa
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.
Diffstat (limited to 'sql/opt_split.cc')
-rw-r--r--sql/opt_split.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/opt_split.cc b/sql/opt_split.cc
index 4d71e9cdd1b..ac2972f4264 100644
--- a/sql/opt_split.cc
+++ b/sql/opt_split.cc
@@ -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)