mirror of
https://github.com/MariaDB/server.git
synced 2025-01-30 18:41:56 +01:00
MDEV-26121 [Note] InnoDB: Resetting invalid page
In dict_index_t::clear(), InnoDB frees all the page except root page. root page leaf segment has reset and does reinitialize again. t in fseg_create(), we do have the assumption that only FIL_PAGE_TYPE_TRX_SYS or FIL_PAGE_TYPE_TRX_SYS page should be re-created for non-full-crc32 format. This assumption is wrong in case of rollback of bulk insert operation.
This commit is contained in:
parent
3989d3800d
commit
3480c3f95b
1 changed files with 1 additions and 12 deletions
|
@ -1709,18 +1709,7 @@ fseg_create(fil_space_t *space, ulint byte_offset, mtr_t *mtr,
|
|||
mtr->x_lock_space(space);
|
||||
ut_d(space->modify_check(*mtr));
|
||||
|
||||
if (block) {
|
||||
ut_ad(block->page.id().space() == space->id);
|
||||
|
||||
if (!space->full_crc32()) {
|
||||
fil_block_check_type(*block, block->page.id()
|
||||
== page_id_t(TRX_SYS_SPACE,
|
||||
TRX_SYS_PAGE_NO)
|
||||
? FIL_PAGE_TYPE_TRX_SYS
|
||||
: FIL_PAGE_TYPE_SYS,
|
||||
mtr);
|
||||
}
|
||||
}
|
||||
ut_ad(!block || block->page.id().space() == space->id);
|
||||
|
||||
if (!has_done_reservation
|
||||
&& !fsp_reserve_free_extents(&n_reserved, space, 2,
|
||||
|
|
Loading…
Add table
Reference in a new issue