Skip to content
Permalink
Browse files

MDEV-17627 Assertion `inited==RND' failed in handler::ha_rnd_end() up…

…on actions on partitioned table with FTS

use ha_ft_end() after ha_ft_init()
  • Loading branch information...
vuvova committed Jul 8, 2019
1 parent 07b1a26 commit ee8477f9dc586f0641f7e0f7fc4e72939cd1aec7
Showing with 19 additions and 1 deletion.
  1. +6 −0 mysql-test/suite/parts/r/fulltext.result
  2. +9 −0 mysql-test/suite/parts/t/fulltext.test
  3. +4 −1 sql/sql_select.cc
@@ -0,0 +1,6 @@
create table t1 (i int, f1 varchar(512), f2 varchar(512), fulltext (f1)) engine=myisam partition by hash (i);
select * from t1 where match (f1) against ('foo');
i f1 f2
select * from t1 where match (f2) against ('bar' in boolean mode) ;
i f1 f2
drop table t1;
@@ -0,0 +1,9 @@
--source include/have_partition.inc

#
# MDEV-17627 Assertion `inited==RND' failed in handler::ha_rnd_end() upon actions on partitioned table with FTS
#
create table t1 (i int, f1 varchar(512), f2 varchar(512), fulltext (f1)) engine=myisam partition by hash (i);
select * from t1 where match (f1) against ('foo');
select * from t1 where match (f2) against ('bar' in boolean mode) ;
drop table t1;
@@ -12499,7 +12499,10 @@ void JOIN_TAB::cleanup()
if (table)
{
table->file->ha_end_keyread();
table->file->ha_index_or_rnd_end();
if (type == JT_FT)
table->file->ha_ft_end();
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)

0 comments on commit ee8477f

Please sign in to comment.
You can’t perform that action at this time.