Content-Length: 258745 | pFad | http://github.com/postgrespro/postgres_cluster/commit/87d84d67bb15752c79a1c07e603126830642ac84

1F Fix start WAL filename for concurrent backups from standby · postgrespro/postgres_cluster@87d84d6 · GitHub
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)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres_cluster/commit/87d84d67bb15752c79a1c07e603126830642ac84

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy