summaryrefslogtreecommitdiff
path: root/sql/partition_info.cc
diff options
context:
space:
mode:
authorAleksey Midenkov <midenok@gmail.com>2022-05-12 20:19:33 +0300
committerSergei Golubchik <serg@mariadb.org>2022-05-18 01:22:29 +0200
commit107623c5c57fa81fd2942ba43ac3677f32ae230c (patch)
tree1d1f71ffcc39c0cb8e6cf8979789d47732659064 /sql/partition_info.cc
parent8609254f4f299cac7f047cd170ae09af17feed0b (diff)
downloadmariadb-git-107623c5c57fa81fd2942ba43ac3677f32ae230c.tar.gz
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.
Diffstat (limited to 'sql/partition_info.cc')
-rw-r--r--sql/partition_info.cc2
1 files changed, 0 insertions, 2 deletions
diff --git a/sql/partition_info.cc b/sql/partition_info.cc
index 90ef388f3b9..fb55091f05e 100644
--- a/sql/partition_info.cc
+++ b/sql/partition_info.cc
@@ -904,8 +904,6 @@ void partition_info::vers_check_limit(THD *thd)
uint32 part_id= vers_info->hist_part->id * sub_factor;
const uint32 part_id_end= part_id + sub_factor;
DBUG_ASSERT(part_id_end <= num_parts * sub_factor);
- for (; part_id < part_id_end; ++part_id)
- bitmap_set_bit(&read_partitions, part_id);
ha_partition *hp= (ha_partition*)(table->file);
ha_rows hist_rows= hp->part_records(vers_info->hist_part);