Initialize myProcLocks queues just once, at postmaster startup.

Robert Haas <rhaas@postgresql.org>

Commit: c2891b46a4b04b80e1fe28ad0bfd75b40e97ea3e
Author: Robert Haas <rhaas@postgresql.org>
Date: 2011-11-02T02:44:54Z
Releases: 9.2.0
Initialize myProcLocks queues just once, at postmaster startup.

In assert-enabled builds, we assert during the shutdown sequence that
the queues have been properly emptied, and during process startup that
we are inheriting empty queues.  In non-assert enabled builds, we just
save a few cycles.

Files

PathChange+/−
src/backend/storage/lmgr/proc.c modified +41 −11