Commit b1bbdbab authored by Sergei Golubchik's avatar Sergei Golubchik

cleanup: remove redundant if()

likely, a result of auto-merge of two fixes in different versions
parent 813e5927
......@@ -13904,13 +13904,6 @@ void JOIN_TAB::cleanup()
delete filesort->select;
delete filesort;
filesort= NULL;
/* Skip non-existing derived tables/views result tables */
if (table &&
(table->s->tmp_table != INTERNAL_TMP_TABLE || table->is_created()))
{
table->file->ha_end_keyread();
table->file->ha_index_or_rnd_end();
}
if (table)
{
table->file->ha_end_keyread();
......@@ -13919,8 +13912,7 @@ void JOIN_TAB::cleanup()
else
table->file->ha_index_or_rnd_end();
preread_init_done= FALSE;
if (table->pos_in_table_list &&
table->pos_in_table_list->jtbm_subselect)
if (table->pos_in_table_list && table->pos_in_table_list->jtbm_subselect)
{
if (table->pos_in_table_list->jtbm_subselect->is_jtbm_const_tab)
{
......
......@@ -15929,10 +15929,10 @@ ha_innobase::external_lock(
}
DBUG_RETURN(0);
} else {
DEBUG_SYNC_C("ha_innobase_end_statement");
}
DEBUG_SYNC_C("ha_innobase_end_statement");
/* MySQL is releasing a table lock */
trx->n_mysql_tables_in_use--;
......@@ -15959,14 +15959,6 @@ ha_innobase::external_lock(
}
}
if (!trx_is_started(trx)
&& lock_type != F_UNLCK
&& (m_prebuilt->select_lock_type != LOCK_NONE
|| m_prebuilt->stored_select_lock_type != LOCK_NONE)) {
trx->will_lock = true;
}
DBUG_RETURN(0);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment