]> git.ipfire.org Git - thirdparty/postgresql.git/commitdiff
Fix pointer type of ShmemAllocatorData->index
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Fri, 13 Mar 2026 09:00:15 +0000 (11:00 +0200)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Fri, 13 Mar 2026 09:00:15 +0000 (11:00 +0200)
This went unnoticed in commit e2362eb2bd because the pointer is cast
to/from a void pointer.

src/backend/storage/ipc/shmem.c

index 9f362ce86412fac01f2fa5f599b0dc3ce08e8a0c..55e4a5421de519430db7139b8896346f3c42cfad 100644 (file)
@@ -87,7 +87,7 @@
 typedef struct ShmemAllocatorData
 {
        Size            free_offset;    /* offset to first free space from ShmemBase */
-       HTAB       *index;                      /* copy of ShmemIndex */
+       HASHHDR    *index;                      /* location of ShmemIndex */
 
        /* protects shared memory and LWLock allocation */
        slock_t         shmem_lock;