Fix the number of lwlocks needed by the "fast path" lock patch. It needs

Heikki Linnakangas <heikki.linnakangas@iki.fi>

Commit: cbf65509bb59694412286239fe6db409060f8d69
Author: Heikki Linnakangas <heikki.linnakangas@iki.fi>
Date: 2011-10-27T19:39:58Z
Releases: 9.2.0
Fix the number of lwlocks needed by the "fast path" lock patch. It needs
one lock per backend or auxiliary process - the need for a lock for each
aux processes was not accounted for in NumLWLocks(). No-one noticed,
because the three locks needed for the three aux processes fit into the
few extra lwlocks we allocate for 3rd party modules that don't call
RequestAddinLWLocks() (NUM_USER_DEFINED_LWLOCKS, 4 by default).

Files

PathChange+/−
src/backend/storage/lmgr/lwlock.c modified +2 −2