pgsql: Check RecoveryInProgress() while holding ProcArrayLock during

From: sriggs(at)postgresql(dot)org (Simon Riggs)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Check RecoveryInProgress() while holding ProcArrayLock during
Date: 2010-04-19 18:03:38
Message-ID: 20100419180338.B9A9B7541D0@cvs.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Log Message:
-----------
Check RecoveryInProgress() while holding ProcArrayLock during snapshots.
This prevents a rare, yet possible race condition at the exact moment
of transition from recovery to normal running.

Modified Files:
--------------
pgsql/src/backend/storage/ipc:
procarray.c (r1.63 -> r1.64)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/storage/ipc/procarray.c?r1=1.63&r2=1.64)

Browse pgsql-committers by date

  From Date Subject
Next Message Simon Riggs 2010-04-19 18:17:56 Re: Re: [COMMITTERS] pgsql: Tune GetSnapshotData() during Hot Standby by avoiding loop
Previous Message Tom Lane 2010-04-19 17:54:48 pgsql: Fix uninitialized local variables.