summaryrefslogtreecommitdiff
path: root/src/backend/replication/logical/tablesync.c
diff options
context:
space:
mode:
authorPeter Eisentraut <peter_e@gmx.net>2017-06-01 23:05:47 -0400
committerPeter Eisentraut <peter_e@gmx.net>2017-06-01 23:16:20 -0400
commit6812330f1cc95f258ffe4ce7d56bdd56efbd9fde (patch)
tree7f48cb78927ea2534827976231fc90fc8af02325 /src/backend/replication/logical/tablesync.c
parent2d460179baa8744e9e2a183a5121306596c53fba (diff)
downloadpostgresql-6812330f1cc95f258ffe4ce7d56bdd56efbd9fde.tar.gz
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>
Diffstat (limited to 'src/backend/replication/logical/tablesync.c')
-rw-r--r--src/backend/replication/logical/tablesync.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/backend/replication/logical/tablesync.c b/src/backend/replication/logical/tablesync.c
index fe45fb8820..515724e102 100644
--- a/src/backend/replication/logical/tablesync.c
+++ b/src/backend/replication/logical/tablesync.c
@@ -140,7 +140,6 @@ finish_sync_worker(void)
CommitTransactionCommand();
/* Stop gracefully */
- walrcv_disconnect(wrconn);
proc_exit(0);
}