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:23
Message-ID: 20090729155723.94AF775331E@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.

Tags:
----
REL8_3_STABLE

Modified Files:
--------------
pgsql/src/backend/storage/ipc:
procarray.c (r1.40.2.1 -> r1.40.2.2)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/storage/ipc/procarray.c?r1=1.40.2.1&r2=1.40.2.2)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2009-07-29 15:57:33 pgsql: Fix a thinko introduced into CountActiveBackends by a recent
Previous Message Tom Lane 2009-07-29 15:57:16 pgsql: Fix a thinko introduced into CountActiveBackends by a recent