diff options
| author | Magnus Hagander | 2016-07-11 10:02:31 +0000 |
|---|---|---|
| committer | Magnus Hagander | 2016-07-11 10:02:31 +0000 |
| commit | 87d84d67bb15752c79a1c07e603126830642ac84 (patch) | |
| tree | b6385be299092b2064d531dfca46b2201dc260f7 /src | |
| parent | 96112ee7c60557bb192a9aa07b514db2400fd45e (diff) | |
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
Diffstat (limited to 'src')
| -rw-r--r-- | src/backend/access/transam/xlog.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/access/transam/xlog.c b/src/backend/access/transam/xlog.c index e4645a31691..aecede149cf 100644 --- a/src/backend/access/transam/xlog.c +++ b/src/backend/access/transam/xlog.c @@ -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 |
