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(-)