BufferSync() & FlushRelationBuffers() conflict - Mailing list pgsql-hackers

From Vadim Mikheev
Subject BufferSync() & FlushRelationBuffers() conflict
Date
Msg-id 00e501c0b1f0$ea10a280$4c79583f@sectorbase.com
Whole thread Raw
Responses Re: BufferSync() & FlushRelationBuffers() conflict  (The Hermit Hacker <scrappy@hub.org>)
List pgsql-hackers
Just committed changes in bufmgr.c
Regress tests passed but need more specific tests,
as usually. Descr as in CVS:

> Check bufHdr->cntxDirty and call StartBufferIO in BufferSync()
> *before* acquiring shlock on buffer context. This way we should be
> protected against conflicts with FlushRelationBuffers.     
> (Seems we never do excl lock and then StartBufferIO for the same
> buffer, so there should be no deadlock here, - but we'd better
> check this very soon).

Vadim




pgsql-hackers by date:

Previous
From: Adriaan Joubert
Date:
Subject: int8 bug on Alpha
Next
From: Tom Lane
Date:
Subject: Re: Call for platforms