From 89a285b33bff2c2620a015ac934871e21570076a Mon Sep 17 00:00:00 2001 From: Konstantin Knizhnik Date: Tue, 15 Aug 2023 17:13:35 +0300 Subject: [PATCH] Remove check for the reast of heap_multi_insert WAL ercord content --- pageserver/src/walingest.rs | 9 --------- 1 file changed, 9 deletions(-) diff --git a/pageserver/src/walingest.rs b/pageserver/src/walingest.rs index 8d4c1842bd..fda621ce1b 100644 --- a/pageserver/src/walingest.rs +++ b/pageserver/src/walingest.rs @@ -450,15 +450,6 @@ impl<'a> WalIngest<'a> { let info = decoded.xl_info & pg_constants::XLOG_HEAP_OPMASK; if info == pg_constants::XLOG_HEAP2_MULTI_INSERT { let xlrec = XlHeapMultiInsert::decode(buf); - - let offset_array_len = if decoded.xl_info & pg_constants::XLOG_HEAP_INIT_PAGE > 0 { - // the offsets array is omitted if XLOG_HEAP_INIT_PAGE is set - 0 - } else { - std::mem::size_of::() * xlrec.ntuples as usize - }; - assert_eq!(offset_array_len, buf.remaining()); - if (xlrec.flags & pg_constants::XLH_INSERT_ALL_VISIBLE_CLEARED) != 0 { new_heap_blkno = Some(decoded.blocks[0].blkno); }