Try with other hashcompare

fix-valgrind-problem-v4
Jelte Fennema 2023-01-31 14:23:32 +01:00
parent d9b9e0cdae
commit 01689e21f1
1 changed files with 2 additions and 1 deletions

View File

@ -1258,7 +1258,8 @@ ConnectionHashCompare(const void *a, const void *b, Size keysize)
if (strncmp(ca->hostname, cb->hostname, MAX_NODE_LENGTH) != 0 || if (strncmp(ca->hostname, cb->hostname, MAX_NODE_LENGTH) != 0 ||
ca->port != cb->port || ca->port != cb->port ||
ca->replicationConnParam != cb->replicationConnParam || (ca->replicationConnParam && !cb->replicationConnParam) ||
(!ca->replicationConnParam && cb->replicationConnParam) ||
strncmp(ca->user, cb->user, NAMEDATALEN) != 0 || strncmp(ca->user, cb->user, NAMEDATALEN) != 0 ||
strncmp(ca->database, cb->database, NAMEDATALEN) != 0) strncmp(ca->database, cb->database, NAMEDATALEN) != 0)
{ {