diff --git a/storage/innobase/mtr/mtr0mtr.cc b/storage/innobase/mtr/mtr0mtr.cc index 90a2007a48d..8db52ac1f47 100644 --- a/storage/innobase/mtr/mtr0mtr.cc +++ b/storage/innobase/mtr/mtr0mtr.cc @@ -583,8 +583,9 @@ void mtr_t::commit_shrink(fil_space_t &space, uint32_t size) if (space.id == TRX_SYS_SPACE) srv_sys_space.set_last_file_size(file->size); + else + space.set_create_lsn(m_commit_lsn); - space.set_create_lsn(m_commit_lsn); mysql_mutex_unlock(&fil_system.mutex); space.clear_freed_ranges();