]> 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:23 +0000 (15:57 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Wed, 29 Jul 2009 15:57:23 +0000 (15:57 +0000)
commite9d2f68632aaa12cd7a17a33675a947734df2be6
treeeb45cb6971ba942fa4528e8a9b8192ac7409d8c5
parentfe37cbb841607f8499ec3d2950397e650a94bf0d
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