pgsql: Fix a thinko introduced into CountActiveBackends by a recent

From: tgl(at)postgresql(dot)org (Tom Lane)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Fix a thinko introduced into CountActiveBackends by a recent
Date: 2009-07-29 15:57:11
Message-ID: 20090729155711.70C9875331E@cvs.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Log Message:
-----------
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.

Modified Files:
--------------
pgsql/src/backend/storage/ipc:
procarray.c (r1.50 -> r1.51)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/storage/ipc/procarray.c?r1=1.50&r2=1.51)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2009-07-29 15:57:16 pgsql: Fix a thinko introduced into CountActiveBackends by a recent
Previous Message User Nanardon 2009-07-29 03:49:46 pgrpm - pgrpm: - apply patch from mandriva for rpm4.4