diff options
author | Robert Haas <rhaas@postgresql.org> | 2017-02-09 14:59:57 -0500 |
---|---|---|
committer | Robert Haas <rhaas@postgresql.org> | 2017-02-09 14:59:57 -0500 |
commit | 72257f95781af97108fa9a9e7224ec81a90e7693 (patch) | |
tree | e221630989e7de61b58a27b4f9ac39128118f4cb /src/backend/access/transam/xlog.c | |
parent | 3f3d60d3bbd10f6cc118d24aadc60e96b9854576 (diff) | |
download | postgresql-72257f95781af97108fa9a9e7224ec81a90e7693.tar.gz postgresql-72257f95781af97108fa9a9e7224ec81a90e7693.zip |
simplehash: Additional tweaks to make specifying an allocator work.
Even if we don't emit definitions for SH_ALLOCATE and SH_FREE, we
still need prototypes. The user can't define them before including
simplehash.h because SH_TYPE isn't available yet.
For the allocator to be able to access private_data, it needs to
become an argument to SH_CREATE. Previously we relied on callers
to set that after returning from SH_CREATE, but SH_CREATE calls
SH_ALLOCATE before returning.
Dilip Kumar, reviewed by me.
Diffstat (limited to 'src/backend/access/transam/xlog.c')
0 files changed, 0 insertions, 0 deletions