On 24/03/2026 17:32, Ashutosh Bapat wrote:
0002
void
InitShmemAllocator(PGShmemHeader *seghdr)
{

The new ShmemIndex initialization code is cleaner and more
straightforward. It avoids the recursive nature of ShmemInitHash.
However with this change it's hard to keep track of all the
initialization steps and their dependencies. Attached is a patch that
makes small adjustments to the code to make it more clear.

Use of variable hash_size is actually misleading since it's not the
size of the hash table but the expected/max number of entries in it.
Removing it makes code more readable.

Thanks, committed this 0002 patch with those changes, to get that out of the way.

- Heikki



Reply via email to