Thread: pgsql/src/backend/storage/lmgr proc.c

pgsql/src/backend/storage/lmgr proc.c

From
"Marc G. Fournier"
Date:
CVSROOT:    /home/projects/pgsql/cvsroot
Module name:    pgsql
Changes by:    scrappy@hub.org    01/09/04 17:42:17

Modified files:
    src/backend/storage/lmgr: proc.c

Log message:
    Fix code so that we recover cleanly if there are no free semaphores
    available in freeSemMap.  As noted by Tatsuo, this is now a likely
    scenario for detecting MaxBackends-exceeded; if MaxBackends is a multiple
    of PROC_NSEMS_PER_SET then we will fail here and not in sinval.c.  The
    cleanup path did not work correctly before, anyway.