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

From The Hermit Hacker
Subject Re: BufferSync() & FlushRelationBuffers() conflict
Date
Msg-id Pine.BSF.4.33.0103211504320.33158-100000@mobile.hub.org
Whole thread Raw
In response to BufferSync() & FlushRelationBuffers() conflict  ("Vadim Mikheev" <vmikheev@sectorbase.com>)
Responses Re: BufferSync() & FlushRelationBuffers() conflict
List pgsql-hackers
Tom, since you appear to be able to recreate the bug, can you comment on
this, as to whether we are okay now?

On Wed, 21 Mar 2001, Vadim Mikheev wrote:

> 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
>
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Don't 'kill -9' the postmaster
>

Marc G. Fournier                   ICQ#7615664               IRC Nick: Scrappy
Systems Administrator @ hub.org
primary: scrappy@hub.org           secondary: scrappy@{freebsd|postgresql}.org



pgsql-hackers by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: RPM building (was regression on RedHat)
Next
From: The Hermit Hacker
Date:
Subject: Re: Patch application