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.jeli...@2ndquadrant.com>
Reported-by: Masahiko Sawada <sawada.m...@gmail.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(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers

Reply via email to