Skip site navigation (1) Skip section navigation (2)

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:33
Message-ID: 20090729155733.7660975331E@cvs.postgresql.org (view raw or flat)
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_2_STABLE

Modified Files:
--------------
    pgsql/src/backend/storage/ipc:
        procarray.c (r1.19.2.1 -> r1.19.2.2)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/storage/ipc/procarray.c?r1=1.19.2.1&r2=1.19.2.2)

pgsql-committers by date

Next:From: Tom LaneDate: 2009-07-29 15:57:39
Subject: pgsql: Fix a thinko introduced into CountActiveBackends by a recent
Previous:From: Tom LaneDate: 2009-07-29 15:57:23
Subject: pgsql: Fix a thinko introduced into CountActiveBackends by a recent

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group