]> granicus.if.org Git - postgresql/commit
Fix code so that we recover cleanly if there are no free semaphores
authorTom Lane <tgl@sss.pgh.pa.us>
Tue, 4 Sep 2001 21:42:17 +0000 (21:42 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Tue, 4 Sep 2001 21:42:17 +0000 (21:42 +0000)
commit763554393a9c816a8b95d068a8137e18e33f824c
tree5135c6bbc76b060f15329431f517701858d16791
parent29c22eec8c52455b5c2252b77521fb29681efe2d
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.
src/backend/storage/lmgr/proc.c