Change the signature of dynahash's alloc function

Instead of passing the current memory context to the alloc function
via a shared variable, pass it directly as an argument.

Reviewed-by: Tomas Vondra <[email protected]>
Discussion: 
https://www.postgresql.org/message-id/[email protected]

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/7b424e3108e4745ba7d37e358a1177911fa5a5ad

Modified Files
--------------
src/backend/storage/ipc/shmem.c   | 16 ++++++++++--
src/backend/utils/hash/dynahash.c | 52 ++++++++++++++++++++-------------------
src/include/utils/hsearch.h       |  8 +++---
3 files changed, 45 insertions(+), 31 deletions(-)

Reply via email to