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

Commit9187ced

Browse files
committed
Put back fast-path for the case that there's no backup blocks in
RestoreBkpBlocks. Went missing in my recent refactoring patch, as pointedout by Simon's hot standby patch.
1 parent9c4b69e commit9187ced

File tree

1 file changed

+4
-1
lines changed
  • src/backend/access/transam

1 file changed

+4
-1
lines changed

‎src/backend/access/transam/xlog.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* Portions Copyright (c) 1996-2009, PostgreSQL Global Development Group
88
* Portions Copyright (c) 1994, Regents of the University of California
99
*
10-
* $PostgreSQL: pgsql/src/backend/access/transam/xlog.c,v 1.328 2009/01/20 18:59:37 heikki Exp $
10+
* $PostgreSQL: pgsql/src/backend/access/transam/xlog.c,v 1.329 2009/01/23 11:19:34 heikki Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -2938,6 +2938,9 @@ RestoreBkpBlocks(XLogRecPtr lsn, XLogRecord *record, bool cleanup)
29382938
char*blk;
29392939
inti;
29402940

2941+
if (!(record->xl_info&XLR_BKP_BLOCK_MASK))
2942+
return;
2943+
29412944
blk= (char*)XLogRecGetData(record)+record->xl_len;
29422945
for (i=0;i<XLR_MAX_BKP_BLOCKS;i++)
29432946
{

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp