Fix the number of lwlocks needed by the "fast path" lock patch. It needs
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Thu, 27 Oct 2011 19:39:58 +0000 (22:39 +0300)
committerRobert Haas <rhaas@postgresql.org>
Fri, 1 Jun 2012 12:29:52 +0000 (08:29 -0400)
commit9e3b8a0e0330e4106bcbd42f4e27d7ac1fdb8688
treea9f25b07c1d0213fa3b0a183f6c2b67f5b12ea8a
parentc1de5f70a3901398a40d24445d8527e48c6c3ded
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).
src/backend/storage/lmgr/lwlock.c