Repair some pretty serious problems in dynahash.c and
Tom Lane <tgl@sss.pgh.pa.us>
Repair some pretty serious problems in dynahash.c and shared memory space allocation. It's a wonder we have not seen bug reports traceable to this area ... it's quite clear that the routine dir_realloc() has never worked correctly, for example.
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/storage/buffer/buf_init.c | modified | +10 −25 |
| src/backend/storage/ipc/ipci.c | modified | +10 −2 |
| src/backend/storage/ipc/shmem.c | modified | +16 −16 |
| src/backend/storage/lmgr/lock.c | modified | +11 −27 |
| src/backend/storage/smgr/mm.c | modified | +7 −24 |
| src/backend/utils/hash/dynahash.c | modified | +106 −64 |
| src/include/utils/hsearch.h | modified | +18 −15 |