From 7dee99da16bbee98464eb85fbfc6e00d5649a406 Mon Sep 17 00:00:00 2001 From: reshke Date: Thu, 17 Aug 2023 14:52:42 +0300 Subject: [PATCH] Update router.c (#525) --- sources/router.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/sources/router.c b/sources/router.c index 77c4d0356..60724f569 100644 --- a/sources/router.c +++ b/sources/router.c @@ -655,12 +655,17 @@ od_router_status_t od_router_attach(od_router_t *router, od_client_t *client, server->key_client = client->key; /* + * XXX: this logic breaks some external solutions that use + * PostgreSQL logical replication. Need to tests this and fix + * * walsender connections are in "graceful shutdown" mode since we cannot * reuse it. - */ + * if (route->id.physical_rep || route->id.logical_rep) server->offline = 1; + */ + od_route_unlock(route); /* attach server io to clients machine context */