summaryrefslogtreecommitdiff
path: root/sql/ha_partition.cc
diff options
context:
space:
mode:
authorMarko Mäkelä <marko.makela@mariadb.com>2022-08-02 08:52:57 +0300
committerMarko Mäkelä <marko.makela@mariadb.com>2022-08-02 08:52:57 +0300
commit9cbf8ccf2990f9db8d9debee42bc9213cbb04457 (patch)
treed37a61dec6e3ade167dc82b78bd8a9c56db2a95a /sql/ha_partition.cc
parentf79cebb4d02a7b5151ac617bc762c3e094436562 (diff)
parent97d16c7544c40430facda441dab89fa4b23468a0 (diff)
downloadmariadb-git-9cbf8ccf2990f9db8d9debee42bc9213cbb04457.tar.gz
Merge 10.7 into 10.8
Diffstat (limited to 'sql/ha_partition.cc')
-rw-r--r--sql/ha_partition.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/sql/ha_partition.cc b/sql/ha_partition.cc
index 03b639bd924..837ab70c530 100644
--- a/sql/ha_partition.cc
+++ b/sql/ha_partition.cc
@@ -2143,7 +2143,10 @@ int ha_partition::change_partitions(HA_CREATE_INFO *create_info,
}
DBUG_ASSERT(m_new_file == 0);
m_new_file= new_file_array;
- if (unlikely((error= copy_partitions(copied, deleted))))
+ (*m_new_file)->extra(HA_EXTRA_BEGIN_ALTER_COPY);
+ error= copy_partitions(copied, deleted);
+ (*m_new_file)->extra(HA_EXTRA_END_ALTER_COPY);
+ if (unlikely(error))
{
/*
Close and unlock the new temporary partitions.