pgsql: Fix longstanding race condition in transaction log management:

From: tgl(at)svr1(dot)postgresql(dot)org (Tom Lane)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Fix longstanding race condition in transaction log management:
Date: 2005-11-03 00:23:50
Message-ID: 20051103002350.C0BC7DA407@svr1.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Log Message:
-----------
Fix longstanding race condition in transaction log management: there was a
very narrow window in which SimpleLruReadPage or SimpleLruWritePage could
think that I/O was needed when it wasn't (and indeed the buffer had already
been assigned to another page). This would result in an Assert failure if
Asserts were enabled, and probably in silent data corruption if not.
Reported independently by Jim Nasby and Robert Creager.

I intend a more extensive fix when 8.2 development starts, but this is a
reasonably low-impact patch for the existing branches.

Tags:
----
REL7_4_STABLE

Modified Files:
--------------
pgsql/src/backend/access/transam:
slru.c (r1.7.2.1 -> r1.7.2.2)
(http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/access/transam/slru.c.diff?r1=1.7.2.1&r2=1.7.2.2)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2005-11-03 00:23:58 pgsql: Fix longstanding race condition in transaction log management:
Previous Message Tom Lane 2005-11-03 00:23:43 pgsql: Fix longstanding race condition in transaction log management: