citus/src
Nils Dijk c6aa5c70e1 Fix leaking of memory and memory contexts in Foreign Constraint Graphs (#7236)
DESCRIPTION: Fix leaking of memory and memory contexts in Foreign
Constraint Graphs

Previously, every time we (re)created the Foreign Constraint
Relationship Graph, we created a new Memory Context while loosing a
reference to the previous context. This old context could still have
left over memory in there causing a memory leak.

With this patch we statically have one memory context that we lazily
initialize the first time we create our foreign constraint relationship
graph. On every subsequent creation, beside destroying our previous
hashmap we also reset our memory context to remove any left over
references.
2023-11-13 13:29:10 -05:00
..
backend Fix leaking of memory and memory contexts in Foreign Constraint Graphs (#7236) 2023-11-13 13:29:10 -05:00
include Fix leaking of memory and memory contexts in Foreign Constraint Graphs (#7236) 2023-11-13 13:29:10 -05:00
test Take improvement_threshold into the account in citus_add_rebalance_strategy() (#7247) 2023-11-13 13:29:10 -05:00