Skip to content

Commit

Permalink
MDEV-11108: Assertion `uniq_tuple_length_arg <= table->file->max_key_…
Browse files Browse the repository at this point in the history
…length()' failed in SJ_TMP_TABLE::create_sj_weedout_tmp_table

Removed the assert from the if clause to the else clause.
  • Loading branch information
varunraiko committed Jan 23, 2017
1 parent 18ef02b commit 8725b35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sql/opt_subselect.cc
Expand Up @@ -4044,13 +4044,13 @@ SJ_TMP_TABLE::create_sj_weedout_tmp_table(THD *thd)
share->db_plugin= ha_lock_engine(0, TMP_ENGINE_HTON);
table->file= get_new_handler(share, &table->mem_root,
share->db_type());
DBUG_ASSERT(uniq_tuple_length_arg <= table->file->max_key_length());
}
else
{
share->db_plugin= ha_lock_engine(0, heap_hton);
table->file= get_new_handler(share, &table->mem_root,
share->db_type());
DBUG_ASSERT(uniq_tuple_length_arg <= table->file->max_key_length());
}
if (!table->file)
goto err;
Expand Down

0 comments on commit 8725b35

Please sign in to comment.