Try with if else on boolean

fix-valgrind-problem-v3
Jelte Fennema 2023-01-31 13:56:01 +01:00
parent e51e040c14
commit d9b9e0cdae
1 changed files with 8 additions and 0 deletions

View File

@ -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;
}