citus/src
Onur Tirtir 789d441296 Handle invalid connection hash entries (#4362)
If MemoryContextAlloc errors out -e.g. during an OOM-, ConnectionHashEntry->connections
stays as NULL.

With this commit, we add isValid flag to ConnectionHashEntry that should be set to true
right after we allocate & initialize ConnectionHashEntry->connections list properly, and we
check it before accesing to ConnectionHashEntry->connections.
(cherry picked from commit 7f3d1182ed)
2020-12-01 11:07:12 +03:00
..
backend Handle invalid connection hash entries (#4362) 2020-12-01 11:07:12 +03:00
include Handle invalid connection hash entries (#4362) 2020-12-01 11:07:12 +03:00
test Do not execute subplans multiple times with cursors 2020-12-01 11:07:12 +03:00