Reorganize logical replication worker disconnect code
Peter Eisentraut <peter_e@gmx.net>
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>
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/replication/logical/launcher.c | modified | +6 −0 |
| src/backend/replication/logical/tablesync.c | modified | +0 −1 |
| src/backend/replication/logical/worker.c | modified | +0 −8 |