OSDN Git Service

Fix a thinko introduced into CountActiveBackends by a recent patch:
authorTom Lane <tgl@sss.pgh.pa.us>
Wed, 29 Jul 2009 15:57:11 +0000 (15:57 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Wed, 29 Jul 2009 15:57:11 +0000 (15:57 +0000)
commit850490579318ff52097eec92ce535357dd0c7a3a
tree95a850ab23d344cd9dbfa050809da3ac303f3ebc
parent49475aab8d0da9077a5828d404ba1e15c3e093c2
Fix a thinko introduced into CountActiveBackends by a recent patch:
we should ignore NULL array entries, not non-NULL ones.  This had the
effect of disabling commit_delay, and could have caused a crash in the
rare race condition the patch was intended to fix.

Bug report and diagnosis by Jeff Janes, in bug #4952.
src/backend/storage/ipc/procarray.c