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 <[email protected]>
Reported-by: Masahiko Sawada <[email protected]>

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 ([email protected])
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers

Reply via email to