Commit 0eb38243 authored by Marko Mäkelä's avatar Marko Mäkelä

MDEV-23456 fixup: Simplify a comparison

parent 040ae4c5
......@@ -2010,9 +2010,8 @@ fseg_create_general(
if (block) {
header = byte_offset + buf_block_get_frame(block);
const ulint type =
(block->page.id.space() == TRX_SYS_SPACE
&& block->page.id.page_no() == TRX_SYS_PAGE_NO)
const ulint type = block->page.id == page_id_t(TRX_SYS_SPACE,
TRX_SYS_PAGE_NO)
? FIL_PAGE_TYPE_TRX_SYS
: FIL_PAGE_TYPE_SYS;
......
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