diff options
author | Nathan Bossart <nathan@postgresql.org> | 2024-02-27 09:44:59 -0600 |
---|---|---|
committer | Nathan Bossart <nathan@postgresql.org> | 2024-02-27 09:44:59 -0600 |
commit | e1724af42c7b0bddad2785f8f7a15c4c123862b2 (patch) | |
tree | b5b132c202bd9b32f20a238c7f1f8123c3e83c83 /src/backend/lib/dshash.c | |
parent | 92d2ab7554f92b841ea71bcc72eaa8ab11aae662 (diff) | |
download | postgresql-e1724af42c7b0bddad2785f8f7a15c4c123862b2.tar.gz postgresql-e1724af42c7b0bddad2785f8f7a15c4c123862b2.zip |
Fix comments for the dshash_parameters struct.
A recent commit added a copy_function member to the
dshash_parameters struct, but it missed updating a couple of
comments that refer to the function pointer members of this struct.
One of those comments also refers to a tranche_name member and non-
arg variants of the function pointer members, all of which were
either removed during development or removed shortly after dshash
table support was committed.
Oversights in commits 8c0d7bafad, d7694fc148, and 42a1de3013.
Discussion: https://postgr.es/m/20240227045213.GA2329190%40nathanxps13
Diffstat (limited to 'src/backend/lib/dshash.c')
-rw-r--r-- | src/backend/lib/dshash.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/lib/dshash.c b/src/backend/lib/dshash.c index cc49b4ca513..ab30f29eee0 100644 --- a/src/backend/lib/dshash.c +++ b/src/backend/lib/dshash.c @@ -202,7 +202,7 @@ static inline void copy_key(dshash_table *hash_table, void *dest, * Create a new hash table backed by the given dynamic shared area, with the * given parameters. The returned object is allocated in backend-local memory * using the current MemoryContext. 'arg' will be passed through to the - * compare and hash functions. + * compare, hash, and copy functions. */ dshash_table * dshash_create(dsa_area *area, const dshash_parameters *params, void *arg) |