pgsql: Make tablesync worker exit when apply dies while it was waiting

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Make tablesync worker exit when apply dies while it was waiting
Date: 2017-06-03 13:21:28
Message-ID: E1dH8zg-0002XE-0Q@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Make tablesync worker exit when apply dies while it was waiting for it

This avoids "orphaned" sync workers.

This was caused by a thinko in wait_for_sync_status_change.

Author: Petr Jelinek <petr(dot)jelinek(at)2ndquadrant(dot)com>
Reported-by: Masahiko Sawada <sawada(dot)mshk(at)gmail(dot)com>

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/3c9bc2157a4f465b3c070d1250597568d2dc285f

Modified Files
--------------
src/backend/replication/logical/tablesync.c | 24 +++++++++++++++++++++---
1 file changed, 21 insertions(+), 3 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Peter Eisentraut 2017-06-03 15:44:49 pgsql: Receive invalidation messages correctly in tablesync worker
Previous Message Andres Freund 2017-06-03 02:23:17 pgsql: Allow parallelism in COPY (query) TO ...;