citus/src
Emel Şimşek fb209e9491 When creating a HTAB we need to use HASH_COMPARE flag in order to set a user defined comparison function. (#6845)
DESCRIPTION: Fixes memory errors, caught by valgrind, of type
"conditional jump or move depends on uninitialized value"

When running Citus tests under Postgres with valgrind, the test cases
calling into `NonBlockingShardSplit` function produce valgrind errors of
type "conditional jump or move depends on uninitialized value".

The issue is caused by creating a HTAB in a wrong way. HASH_COMPARE flag
should have been used when creating a HTAB with user defined comparison
function. In the absence of HASH_COMPARE flag, HTAB falls back into
built-in string comparison function. However, valgrind somehow discovers
that the match function is not assigned to the user defined function as
intended.

Fixes #6835

(cherry picked from commit e7a25d82c9)
2023-04-24 15:07:42 +03:00
..
backend When creating a HTAB we need to use HASH_COMPARE flag in order to set a user defined comparison function. (#6845) 2023-04-24 15:07:42 +03:00
bin/pg_send_cancellation Add jobs to test builds on different distros (release-11.1) (#6541) 2022-12-05 14:24:09 +03:00
include Exclude-Generated-Columns-In-Copy (#6721) 2023-03-07 20:26:04 +03:00
test Exclude-Generated-Columns-In-Copy (#6721) 2023-03-07 20:26:04 +03:00