Fix a thinko introduced into CountActiveBackends by a recent patch:

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 2a88963536297c4227d5f400a3c44a1f6b98c503
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2009-07-29T15:57:16Z
Releases: 8.4.1
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.

Files

PathChange+/−
src/backend/storage/ipc/procarray.c modified +2 −2