Skip to content

Commit

Permalink
MDEV-28400 Leak in trx_mod_time_t::start_bulk_insert()
Browse files Browse the repository at this point in the history
- Skip the undo logging only for the newly added partition.
  • Loading branch information
Thirunarayanan committed Aug 9, 2022
1 parent 1d48041 commit fbfd44b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions sql/ha_partition.cc
Expand Up @@ -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))
{
/*
Expand Down

0 comments on commit fbfd44b

Please sign in to comment.