pgsql: Fix longstanding race condition in transaction log management: - Mailing list pgsql-committers

From tgl@svr1.postgresql.org (Tom Lane)
Subject pgsql: Fix longstanding race condition in transaction log management:
Date
Msg-id 20051103002336.B9F19D9E08@svr1.postgresql.org
Whole thread Raw
List 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.

Modified Files:
--------------
    pgsql/src/backend/access/transam:
        slru.c (r1.28 -> r1.29)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/access/transam/slru.c.diff?r1=1.28&r2=1.29)

pgsql-committers by date:

Previous
From: xzilla@pgfoundry.org (User Xzilla)
Date:
Subject: wikipedia - wikipgedia: add missing tsearch2 based table for schema,
Next
From: tgl@svr1.postgresql.org (Tom Lane)
Date:
Subject: pgsql: Fix longstanding race condition in transaction log management: