summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksey Midenkov <midenok@gmail.com>2022-05-17 16:02:48 +0300
committerAleksey Midenkov <midenok@gmail.com>2022-05-17 16:02:48 +0300
commit441c26da22eb0af31e5de330eb9a426a2caab7ad (patch)
treee8af02ca94cd13c40ee73b22226ce2674f0624de
parent5dba54bfef31d91c082362065cd091086e20ee9a (diff)
downloadmariadb-git-441c26da22eb0af31e5de330eb9a426a2caab7ad.tar.gz
MDEV-27328 MSAN failure fix
-rw-r--r--sql/sql_partition.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/sql/sql_partition.cc b/sql/sql_partition.cc
index d2cdbdaf122..f42b9955b90 100644
--- a/sql/sql_partition.cc
+++ b/sql/sql_partition.cc
@@ -5984,11 +5984,12 @@ the generated partition syntax in a correct manner.
tab_part_info != part_info && part_info->part_type == VERSIONING_PARTITION &&
part_info->num_parts == 0)
{
- if (part_info->vers_info->interval.is_set() &&
+ if (part_info->vers_info->interval.is_set() && (
+ !tab_part_info->vers_info->interval.is_set() ||
/* TODO: equivalent intervals like 1 hour and 60 mins should be considered equal */
memcmp(&part_info->vers_info->interval,
&tab_part_info->vers_info->interval,
- sizeof(Vers_part_info::interval)))
+ sizeof(Vers_part_info::interval))))
{
/* If interval is changed we can not do fast alter */
tab_part_info= tab_part_info->get_clone(thd);