Reorganize logical replication worker disconnect code
authorPeter Eisentraut <peter_e@gmx.net>
Fri, 2 Jun 2017 03:05:47 +0000 (23:05 -0400)
committerPeter Eisentraut <peter_e@gmx.net>
Fri, 2 Jun 2017 03:16:20 +0000 (23:16 -0400)
commit6812330f1cc95f258ffe4ce7d56bdd56efbd9fde
tree7f48cb78927ea2534827976231fc90fc8af02325
parent2d460179baa8744e9e2a183a5121306596c53fba
Reorganize logical replication worker disconnect code

Move the walrcv_disconnect() calls into the before_shmem_exit handler.
This makes sure the call is always made even during exit by signal, it
saves some duplicate code, and it makes the logic more similar to
walreceiver.c.

Author: Petr Jelinek <petr.jelinek@2ndquadrant.com>
src/backend/replication/logical/launcher.c
src/backend/replication/logical/tablesync.c
src/backend/replication/logical/worker.c