Commit ee8477f9 authored by Sergei Golubchik's avatar Sergei Golubchik

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

MDEV-17627 Assertion `inited==RND' failed in handler::ha_rnd_end() upon actions on partitioned table with FTS

use ha_ft_end() after ha_ft_init()
parent 07b1a26c
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;
--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)
......
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