MDEV-28400 Leak in trx_mod_time_t::start_bulk_insert()

- Skip the undo logging only for the newly added partition.
parent 1d480419
......@@ -2143,9 +2143,11 @@ int ha_partition::change_partitions(HA_CREATE_INFO *create_info,
}
DBUG_ASSERT(m_new_file == 0);
m_new_file= new_file_array;
(*m_new_file)->extra(HA_EXTRA_BEGIN_ALTER_COPY);
for (i= 0; i < part_count; i++)
m_added_file[i]->extra(HA_EXTRA_BEGIN_ALTER_COPY);
error= copy_partitions(copied, deleted);
(*m_new_file)->extra(HA_EXTRA_END_ALTER_COPY);
for (i= 0; i < part_count; i++)
m_added_file[i]->extra(HA_EXTRA_END_ALTER_COPY);
if (unlikely(error))
{
/*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment