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

Commit2af72ce

Browse files
committed
Add missing Assert and fix inaccurate elog message in standby_redo().
All other WAL redo routines either call RestoreBkpBlocks() or Assert thatthey haven't been passed any backup blocks. Make this one do likewise.Also, fix incorrect routine name in its failure message.
1 parent9bff078 commit2af72ce

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

‎src/backend/storage/ipc/standby.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -718,6 +718,9 @@ standby_redo(XLogRecPtr lsn, XLogRecord *record)
718718
{
719719
uint8info=record->xl_info& ~XLR_INFO_MASK;
720720

721+
/* Backup blocks are not used in standby records */
722+
Assert(!(record->xl_info&XLR_BKP_BLOCK_MASK));
723+
721724
/* Do nothing if we're not in hot standby mode */
722725
if (standbyState==STANDBY_DISABLED)
723726
return;
@@ -747,7 +750,7 @@ standby_redo(XLogRecPtr lsn, XLogRecord *record)
747750
ProcArrayApplyRecoveryInfo(&running);
748751
}
749752
else
750-
elog(PANIC,"relation_redo: unknown op code %u",info);
753+
elog(PANIC,"standby_redo: unknown op code %u",info);
751754
}
752755

753756
staticvoid

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp