Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitcfe992e

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 isalways recreated from scratch.
1 parent954523c commitcfe992e

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)

[8]ページ先頭

©2009-2025 Movatter.jp