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

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:43
Message-ID: 20051103002343.9D8B1DA24B@svr1.postgresql.org (view raw or flat)
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:
----
REL8_0_STABLE

Modified Files:
--------------
    pgsql/src/backend/access/transam:
        slru.c (r1.23 -> r1.23.4.1)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/access/transam/slru.c.diff?r1=1.23&r2=1.23.4.1)

pgsql-committers by date

Next:From: Tom LaneDate: 2005-11-03 00:23:50
Subject: pgsql: Fix longstanding race condition in transaction log management:
Previous:From: Tom LaneDate: 2005-11-03 00:23:36
Subject: pgsql: Fix longstanding race condition in transaction log management:

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