~ubuntu-branches/ubuntu/trusty/postgresql-9.3/trusty-proposed

« back to all changes in this revision

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

  • Committer: Package Import Robot
  • Author(s): Martin Pitt
  • Date: 2016-03-31 11:04:53 UTC
  • mfrom: (1.1.11) (18.1.4 trusty-security)
  • Revision ID: package-import@ubuntu.com-20160331110453-h6xfs9f11suj3mze
Tags: 9.3.12-0ubuntu0.14.04
* New upstream bug fix release. (LP: #1564268)
  - See http://www.postgresql.org/about/news/1656/ for details.

Show diffs side-by-side

added added

removed removed

Lines of Context:
361
361
 * Update the LSNs on each queue based upon our latest state. This
362
362
 * implements a simple policy of first-valid-standby-releases-waiter.
363
363
 *
364
 
 * Other policies are possible, which would change what we do here and what
 
364
 * Other policies are possible, which would change what we do here and
365
365
 * perhaps also which information we store as well.
366
366
 */
367
367
void
376
376
 
377
377
        /*
378
378
         * If this WALSender is serving a standby that is not on the list of
379
 
         * potential standbys then we have nothing to do. If we are still starting
380
 
         * up, still running base backup or the current flush position is still
381
 
         * invalid, then leave quickly also.
 
379
         * potential sync standbys then we have nothing to do. If we are still
 
380
         * starting up, still running base backup or the current flush position
 
381
         * is still invalid, then leave quickly also.
382
382
         */
383
383
        if (MyWalSnd->sync_standby_priority == 0 ||
384
384
                MyWalSnd->state < WALSNDSTATE_STREAMING ||