Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 87d84d6

Browse files
committed
Fix start WAL filename for concurrent backups from standby
On a standby, ThisTimelineID is always 0, so we would generate a filename in timeline 0 even for other timelines. Instead, use starttli which we have retreived from the controlfile. Report by: Francesco Canovai in bug #14230 Author: Marco Nenciarini Reviewed by: Michael Paquier and Amit Kapila
1 parent 96112ee commit 87d84d6

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

src/backend/access/transam/xlog.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9974,7 +9974,7 @@ do_pg_start_backup(const char *backupidstr, bool fast, TimeLineID *starttli_p,
99749974
} while (!gotUniqueStartpoint);
99759975

99769976
XLByteToSeg(startpoint, _logSegNo);
9977-
XLogFileName(xlogfilename, ThisTimeLineID, _logSegNo);
9977+
XLogFileName(xlogfilename, starttli, _logSegNo);
99789978

99799979
/*
99809980
* Construct tablespace_map file

0 commit comments

Comments
 (0)