4850
4850
* If we are establishing a new timeline, we have to copy data from
4851
4851
* the last WAL segment of the old timeline to create a starting WAL
4852
4852
* segment for the new timeline.
4854
4858
if (endTLI != ThisTimeLineID)
4855
4860
XLogFileCopy(endLogId, endLogSeg,
4856
4861
endTLI, endLogId, endLogSeg);
4865
XLogFileName(xlogpath, endTLI, endLogId, endLogSeg);