~aglenyoung/+junk/postgres-9.3-dtrace

« back to all changes in this revision

Viewing changes to src/backend/replication/walreceiverfuncs.c

  • Committer: Package Import Robot
  • Author(s): Martin Pitt, Christoph Berg, Martin Pitt
  • Date: 2013-06-26 15:13:32 UTC
  • mfrom: (1.1.1)
  • Revision ID: package-import@ubuntu.com-20130626151332-p34yjpn0txbdsdzd
Tags: 9.3~beta2-1
[ Christoph Berg ]
* hurd-i386: Ignore testsuite failures so we have a working libpq5 (they
  don't implement semaphores so the server won't even start).
* Mark postgresql-9.3 as beta in the description, suggested by Joshua D.
  Drake.

[ Martin Pitt ]
* New upstream release 9.3 beta2.

Show diffs side-by-side

added added

removed removed

Lines of Context:
260
260
        walrcv->startTime = now;
261
261
 
262
262
        /*
263
 
         * If this is the first startup of walreceiver, we initialize receivedUpto
264
 
         * and latestChunkStart to receiveStart.
 
263
         * If this is the first startup of walreceiver (on this timeline),
 
264
         * initialize receivedUpto and latestChunkStart to the starting point.
265
265
         */
266
 
        if (walrcv->receiveStart == 0)
 
266
        if (walrcv->receiveStart == 0 || walrcv->receivedTLI != tli)
267
267
        {
268
268
                walrcv->receivedUpto = recptr;
 
269
                walrcv->receivedTLI = tli;
269
270
                walrcv->latestChunkStart = recptr;
270
271
        }
271
272
        walrcv->receiveStart = recptr;