]> granicus.if.org Git - postgresql/commit
Fix a thinko introduced into CountActiveBackends by a recent patch:
authorTom Lane <tgl@sss.pgh.pa.us>
Wed, 29 Jul 2009 15:57:39 +0000 (15:57 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Wed, 29 Jul 2009 15:57:39 +0000 (15:57 +0000)
commita0381f267912063547d7911f2c4600da20ded024
treef34fd5e5ce6c615b9f69390deccd58cd652a2b2b
parentb99751a199742f1b50e0fc3f8249b53d69c8eb88
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