~ubuntu-branches/ubuntu/natty/postgresql-8.4/natty-updates

« back to all changes in this revision

Viewing changes to src/backend/access/transam/xlog.c

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2009-05-05 00:58:06 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20090505005806-c19tt7oyqb7kuw49
Tags: 8.4~beta1+cvs20090503-1
New upstream snapshot.

Show diffs side-by-side

added added

removed removed

Lines of Context:
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.
 
4853
                 *
 
4854
                 * Notify the archiver that the last WAL segment of the old timeline
 
4855
                 * is ready to copy to archival storage. Otherwise, it is not archived
 
4856
                 * for a while.
4853
4857
                 */
4854
4858
                if (endTLI != ThisTimeLineID)
 
4859
                {
4855
4860
                        XLogFileCopy(endLogId, endLogSeg,
4856
4861
                                                 endTLI, endLogId, endLogSeg);
 
4862
 
 
4863
                        if (XLogArchivingActive())
 
4864
                        {
 
4865
                                XLogFileName(xlogpath, endTLI, endLogId, endLogSeg);
 
4866
                                XLogArchiveNotify(xlogpath);
 
4867
                        }
 
4868
                }
4857
4869
        }
4858
4870
 
4859
4871
        /*