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

Commit3230fd0

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 placedat a segment boundary. Furthermore the previous implementation couldreturn nonexistent segment file name when the boundary is in segmentsthat has "FE" suffix; We never use segments with "FF" suffix.Backpatch to 8.0, where hot backup was introduced.Reported by Fujii Masao.
1 parenta39f02e commit3230fd0

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/1704: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)

[8]ページ先頭

©2009-2025 Movatter.jp