]> granicus.if.org Git - postgresql/commit
Fix longstanding race condition in transaction log management: there was a
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 3 Nov 2005 00:23:50 +0000 (00:23 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 3 Nov 2005 00:23:50 +0000 (00:23 +0000)
commit74f224fad469f9778443a3b256823ed85ffe0399
tree7026c725fbfaa0f4f08a123dda7567ffc79459dd
parentfcd978c57d4ee50bd530490eee1191a155d60205
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.
src/backend/access/transam/slru.c