diff options
author | Marko Mäkelä <marko.makela@mariadb.com> | 2022-08-02 08:52:57 +0300 |
---|---|---|
committer | Marko Mäkelä <marko.makela@mariadb.com> | 2022-08-02 08:52:57 +0300 |
commit | 9cbf8ccf2990f9db8d9debee42bc9213cbb04457 (patch) | |
tree | d37a61dec6e3ade167dc82b78bd8a9c56db2a95a /sql/ha_partition.cc | |
parent | f79cebb4d02a7b5151ac617bc762c3e094436562 (diff) | |
parent | 97d16c7544c40430facda441dab89fa4b23468a0 (diff) | |
download | mariadb-git-9cbf8ccf2990f9db8d9debee42bc9213cbb04457.tar.gz |
Merge 10.7 into 10.8
Diffstat (limited to 'sql/ha_partition.cc')
-rw-r--r-- | sql/ha_partition.cc | 5 |
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. |