Skip to content

Commit cfe992e

Browse files
committed
Remove dead check for backup block, replace with Assert.
We don't use backup blocks with GIN vacuum records anymore, the page is always recreated from scratch.
1 parent 954523c commit cfe992e

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/backend/access/gin/ginxlog.c

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -564,12 +564,8 @@ ginRedoVacuumPage(XLogRecPtr lsn, XLogRecord *record)
564564
Assert(xlrec->hole_offset < BLCKSZ);
565565
Assert(xlrec->hole_length < BLCKSZ);
566566

567-
/* If we have a full-page image, restore it and we're done */
568-
if (record->xl_info & XLR_BKP_BLOCK(0))
569-
{
570-
(void) RestoreBackupBlock(lsn, record, 0, false, false);
571-
return;
572-
}
567+
/* Backup blocks are not used, we'll re-initialize the page always. */
568+
Assert(!(record->xl_info & XLR_BKP_BLOCK_MASK));
573569

574570
buffer = XLogReadBuffer(xlrec->node, xlrec->blkno, true);
575571
if (!BufferIsValid(buffer))

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy