Skip to content

Commit 3480c3f

Browse files
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.
1 parent 3989d38 commit 3480c3f

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

storage/innobase/fsp/fsp0fsp.cc

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1709,18 +1709,7 @@ fseg_create(fil_space_t *space, ulint byte_offset, mtr_t *mtr,
17091709
mtr->x_lock_space(space);
17101710
ut_d(space->modify_check(*mtr));
17111711

1712-
if (block) {
1713-
ut_ad(block->page.id().space() == space->id);
1714-
1715-
if (!space->full_crc32()) {
1716-
fil_block_check_type(*block, block->page.id()
1717-
== page_id_t(TRX_SYS_SPACE,
1718-
TRX_SYS_PAGE_NO)
1719-
? FIL_PAGE_TYPE_TRX_SYS
1720-
: FIL_PAGE_TYPE_SYS,
1721-
mtr);
1722-
}
1723-
}
1712+
ut_ad(!block || block->page.id().space() == space->id);
17241713

17251714
if (!has_done_reservation
17261715
&& !fsp_reserve_free_extents(&n_reserved, space, 2,

0 commit comments

Comments
 (0)