mirror of https://github.com/citusdata/citus.git
change order
parent
8d7c497d68
commit
9be5d1ff05
|
@ -338,7 +338,7 @@ StartNodeUserDatabaseConnection(uint32 flags, const char *hostname, int32 port,
|
||||||
MultiConnection *connection = MemoryContextAllocZero(ConnectionContext,
|
MultiConnection *connection = MemoryContextAllocZero(ConnectionContext,
|
||||||
sizeof(MultiConnection));
|
sizeof(MultiConnection));
|
||||||
connection->initilizationState = POOL_STATE_NOT_INITIALIZED;
|
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 */
|
/* these two flags are by nature cannot happen at the same time */
|
||||||
Assert(!((flags & WAIT_FOR_CONNECTION) && (flags & OPTIONAL_CONNECTION)));
|
Assert(!((flags & WAIT_FOR_CONNECTION) && (flags & OPTIONAL_CONNECTION)));
|
||||||
|
|
Loading…
Reference in New Issue