| From: | Fujii Masao <fujii(at)postgresql(dot)org> |
|---|---|
| To: | pgsql-committers(at)postgresql(dot)org |
| Subject: | pgsql: Fix bug in clean shutdown of walsender that pg_receiving is conn |
| Date: | 2014-03-17 11:48:00 |
| Message-ID: | E1WPW1Q-0003uV-P8@gemulon.postgresql.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-committers |
Fix bug in clean shutdown of walsender that pg_receiving is connecting to.
On clean shutdown, walsender waits for all WAL to be replicated to a standby,
and exits. It determined whether that replication had been completed by
checking whether its sent location had been equal to a standby's flush
location. Unfortunately this condition never becomes true when the standby
such as pg_receivexlog which always returns an invalid flush location is
connecting to walsender, and then walsender waits forever.
This commit changes walsender so that it just checks a standby's write
location if a flush location is invalid.
Back-patch to 9.1 where enough infrastructure for this exists.
Branch
------
REL9_1_STABLE
Details
-------
http://git.postgresql.org/pg/commitdiff/65e8dbb1869db542c93333fc809f34c7d3f7d9bd
Modified Files
--------------
src/backend/replication/walsender.c | 13 ++++++++++++-
1 file changed, 12 insertions(+), 1 deletion(-)
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Fujii Masao | 2014-03-17 11:52:55 | pgsql: Fix typos in comments. |
| Previous Message | Magnus Hagander | 2014-03-17 08:10:03 | pgsql: Fix small typo in comment |