BufferSync() & FlushRelationBuffers() conflict

From: "Vadim Mikheev" <vmikheev(at)sectorbase(dot)com>
To: "PostgreSQL Development" <pgsql-hackers(at)postgresql(dot)org>
Subject: BufferSync() & FlushRelationBuffers() conflict
Date: 2001-03-21 10:23:03
Message-ID: 00e501c0b1f0$ea10a280$4c79583f@sectorbase.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2001-03-21 11:13:46 Re: Call for platforms
Previous Message Vadim Mikheev 2001-03-21 09:46:23 Re: Stuck spins in current