From 501e57e78e4568d778fce2d36436b31fd1f313df Mon Sep 17 00:00:00 2001 From: Onder Kalaci Date: Wed, 8 Apr 2020 18:50:35 +0200 Subject: [PATCH] Apply code review feedback --- 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 5f5767f26..56ffd0c32 100644 --- a/src/backend/distributed/connection/connection_management.c +++ b/src/backend/distributed/connection/connection_management.c @@ -329,7 +329,7 @@ StartNodeUserDatabaseConnection(uint32 flags, const char *hostname, int32 port, dlist_push_tail(entry->connections, &connection->connectionNode); /* these two flags are by nature cannot happen at the same time */ - Assert((flags & OPTIONAL_CONNECTION) && (flags & WAIT_FOR_CONNECTION)); + Assert((!(flags & OPTIONAL_CONNECTION) && (flags & WAIT_FOR_CONNECTION))); if (flags & WAIT_FOR_CONNECTION) {