]> granicus.if.org Git - postgresql/commit
Make tablesync worker exit when apply dies while it was waiting for it
authorPeter Eisentraut <peter_e@gmx.net>
Sat, 3 Jun 2017 13:18:52 +0000 (09:18 -0400)
committerPeter Eisentraut <peter_e@gmx.net>
Sat, 3 Jun 2017 13:20:56 +0000 (09:20 -0400)
commit3c9bc2157a4f465b3c070d1250597568d2dc285f
treeb2d5d9831852365bb6e2a08141ffdbb8665ecf71
parent34aebcf42a70089b76ff8e9ccda331f111153eeb
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.jelinek@2ndquadrant.com>
Reported-by: Masahiko Sawada <sawada.mshk@gmail.com>
src/backend/replication/logical/tablesync.c