Skip to content

Commit 3230fd0

Browse files
committed
Fix STOP WAL LOCATION in backup history files no to return the next
segment of XLOG_BACKUP_END record even if the the record is placed at a segment boundary. Furthermore the previous implementation could return nonexistent segment file name when the boundary is in segments that has "FE" suffix; We never use segments with "FF" suffix. Backpatch to 8.0, where hot backup was introduced. Reported by Fujii Masao.
1 parent a39f02e commit 3230fd0

File tree

1 file changed

+2
-2
lines changed
  • src/backend/access/transam

1 file changed

+2
-2
lines changed

src/backend/access/transam/xlog.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* Portions Copyright (c) 1996-2010, 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.375 2010/02/17 04:19:39 tgl Exp $
10+
* $PostgreSQL: pgsql/src/backend/access/transam/xlog.c,v 1.376 2010/02/19 01:04:03 itagaki Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -8052,7 +8052,7 @@ pg_stop_backup(PG_FUNCTION_ARGS)
80528052
*/
80538053
RequestXLogSwitch();
80548054

8055-
XLByteToSeg(stoppoint, _logId, _logSeg);
8055+
XLByteToPrevSeg(stoppoint, _logId, _logSeg);
80568056
XLogFileName(stopxlogfilename, ThisTimeLineID, _logId, _logSeg);
80578057

80588058
/* Use the log timezone here, not the session timezone */

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