mirror of
https://github.com/postgres/postgres.git
synced 2026-04-05 01:07:27 -04:00
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
This commit is contained in:
parent
96112ee7c6
commit
87d84d67bb
1 changed files with 1 additions and 1 deletions
|
|
@ -9974,7 +9974,7 @@ do_pg_start_backup(const char *backupidstr, bool fast, TimeLineID *starttli_p,
|
|||
} while (!gotUniqueStartpoint);
|
||||
|
||||
XLByteToSeg(startpoint, _logSegNo);
|
||||
XLogFileName(xlogfilename, ThisTimeLineID, _logSegNo);
|
||||
XLogFileName(xlogfilename, starttli, _logSegNo);
|
||||
|
||||
/*
|
||||
* Construct tablespace_map file
|
||||
|
|
|
|||
Loading…
Reference in a new issue