BufferSync() & FlushRelationBuffers() conflict

Поиск
Список
Период
Сортировка
От Vadim Mikheev
Тема BufferSync() & FlushRelationBuffers() conflict
Дата
Msg-id 00e501c0b1f0$ea10a280$4c79583f@sectorbase.com
обсуждение исходный текст
Ответы Re: BufferSync() & FlushRelationBuffers() conflict
Список 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 по дате отправления: