Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
reshke committed Jan 31, 2024
1 parent 31abc26 commit 1e25227
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions sources/router.c
Original file line number Diff line number Diff line change
Expand Up @@ -697,17 +697,16 @@ void od_router_detach(od_router_t *router, od_client_t *client)
if (od_likely(!server->offline)) {
od_instance_t *instance = server->global->instance;
if (route->id.physical_rep || route->id.logical_rep) {
od_debug(&instance->logger, "expire-replication", NULL, server,
"closing replication connection");
od_debug(&instance->logger, "expire-replication", NULL,
server, "closing replication connection");
server->route = NULL;
od_backend_close_connection(server);
od_pg_server_pool_set(&route->server_pool, server,
OD_SERVER_UNDEF);
OD_SERVER_UNDEF);
od_backend_close(server);
} else {

od_pg_server_pool_set(&route->server_pool, server,
OD_SERVER_IDLE);
OD_SERVER_IDLE);
}
} else {
od_instance_t *instance = server->global->instance;
Expand Down

0 comments on commit 1e25227

Please sign in to comment.