Skip to content

Commit 9187ced

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 pointed out by Simon's hot standby patch.
1 parent 9c4b69e commit 9187ced

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
int i;
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)
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