From d9b9e0cdaea7a93833ecd2f5433805bd169cd0ca Mon Sep 17 00:00:00 2001 From: Jelte Fennema Date: Tue, 31 Jan 2023 13:56:01 +0100 Subject: [PATCH] Try with if else on boolean --- .../distributed/connection/connection_management.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/backend/distributed/connection/connection_management.c b/src/backend/distributed/connection/connection_management.c index 819b35cf2..d701ac8f6 100644 --- a/src/backend/distributed/connection/connection_management.c +++ b/src/backend/distributed/connection/connection_management.c @@ -1237,6 +1237,14 @@ ConnectionHashHash(const void *key, Size keysize) hash = hash_combine(hash, hash_uint32(entry->port)); hash = hash_combine(hash, string_hash(entry->user, NAMEDATALEN)); hash = hash_combine(hash, string_hash(entry->database, NAMEDATALEN)); + if (entry->replicationConnParam) + { + hash = hash_combine(hash, hash_uint32(1)); + } + else + { + hash = hash_combine(hash, hash_uint32(0)); + } return hash; }