MDEV-28552 Assertion `inited==RND' failed in handler::ha_rnd_end

We cannot permanently change bits in read_partitions in the middle of
processing because ha_rnd_init()/ha_rnd_end() depends on that.
This commit is contained in:
Aleksey Midenkov 2022-05-12 20:19:33 +03:00 committed by Sergei Golubchik
commit 107623c5c5
4 changed files with 30 additions and 3 deletions

View file

@ -1608,7 +1608,6 @@ public:
for (; part_id < part_id_end; ++part_id)
{
handler *file= m_file[part_id];
DBUG_ASSERT(bitmap_is_set(&(m_part_info->read_partitions), part_id));
file->info(HA_STATUS_VARIABLE | HA_STATUS_NO_LOCK | HA_STATUS_OPEN);
part_recs+= file->stats.records;
}