Apply code review feedback

preventConflictingFlags
Onder Kalaci 2020-04-08 18:50:35 +02:00
parent f3394b2283
commit 501e57e78e
1 changed files with 1 additions and 1 deletions

View File

@ -329,7 +329,7 @@ StartNodeUserDatabaseConnection(uint32 flags, const char *hostname, int32 port,
dlist_push_tail(entry->connections, &connection->connectionNode); dlist_push_tail(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 & OPTIONAL_CONNECTION) && (flags & WAIT_FOR_CONNECTION)); Assert((!(flags & OPTIONAL_CONNECTION) && (flags & WAIT_FOR_CONNECTION)));
if (flags & WAIT_FOR_CONNECTION) if (flags & WAIT_FOR_CONNECTION)
{ {