mirror of
https://github.com/MariaDB/server.git
synced 2025-10-12 12:25:37 +03:00
Merge 5.3 -> 5.5
This commit is contained in:
@@ -10314,6 +10314,11 @@ void JOIN_TAB::cleanup()
|
||||
{
|
||||
if (table->pos_in_table_list->jtbm_subselect->is_jtbm_const_tab)
|
||||
{
|
||||
/*
|
||||
Set this to NULL so that cleanup_empty_jtbm_semi_joins() doesn't
|
||||
attempt to make another free_tmp_table call.
|
||||
*/
|
||||
table->pos_in_table_list->table= NULL;
|
||||
free_tmp_table(join->thd, table);
|
||||
table= NULL;
|
||||
}
|
||||
@@ -10727,6 +10732,7 @@ void JOIN::cleanup(bool full)
|
||||
}
|
||||
if (full)
|
||||
{
|
||||
cleanup_empty_jtbm_semi_joins(this);
|
||||
/*
|
||||
Ensure that the following delete_elements() would not be called
|
||||
twice for the same list.
|
||||
|
Reference in New Issue
Block a user