pgsql: Fix sloppiness in the timeline switch over streaming replication

From: Heikki Linnakangas <heikki(dot)linnakangas(at)iki(dot)fi>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Fix sloppiness in the timeline switch over streaming replication
Date: 2012-12-21 18:11:43
Message-ID: E1Tm74R-0003B9-DN@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Fix sloppiness in the timeline switch over streaming replication patch.

Here's another attempt at fixing the logic that decides how far the WAL can
be streamed, which was still broken if the timeline changed while streaming.
You would get an assertion failure. The way the logic is now written is more
readable, too.

Thom Brown reported the assertion failure.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/1ff92eea140ccf0503b7399549031976e5c6642e

Modified Files
--------------
src/backend/replication/walsender.c | 101 +++++++++++++++++++----------------
1 files changed, 54 insertions(+), 47 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message hubert depesz lubaczewski 2012-12-22 13:13:18 Re: [COMMITTERS] pgsql: Allow a streaming replication standby to follow a timeline switc
Previous Message Heikki Linnakangas 2012-12-21 13:37:24 pgsql: Fix race condition if a file is removed while pg_basebackup is r