From 9be5d1ff052b8090ba5b2e6c7481d13243dc2c89 Mon Sep 17 00:00:00 2001 From: Onder Kalaci Date: Thu, 25 Nov 2021 11:43:17 +0100 Subject: [PATCH] change order --- src/backend/distributed/connection/connection_management.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/distributed/connection/connection_management.c b/src/backend/distributed/connection/connection_management.c index 1768575c7..d620821a7 100644 --- a/src/backend/distributed/connection/connection_management.c +++ b/src/backend/distributed/connection/connection_management.c @@ -338,7 +338,7 @@ StartNodeUserDatabaseConnection(uint32 flags, const char *hostname, int32 port, MultiConnection *connection = MemoryContextAllocZero(ConnectionContext, sizeof(MultiConnection)); connection->initilizationState = POOL_STATE_NOT_INITIALIZED; - dlist_push_tail(entry->connections, &connection->connectionNode); + dlist_push_head(entry->connections, &connection->connectionNode); /* these two flags are by nature cannot happen at the same time */ Assert(!((flags & WAIT_FOR_CONNECTION) && (flags & OPTIONAL_CONNECTION)));