Check bufHdr->cntxDirty and call StartBufferIO in BufferSync()
authorVadim B. Mikheev <[email protected]>
Wed, 21 Mar 2001 10:13:29 +0000 (10:13 +0000)
committerVadim B. Mikheev <[email protected]>
Wed, 21 Mar 2001 10:13:29 +0000 (10:13 +0000)
commitab36582a191fabfcb9ed63ef2d839d26eb9f6c48
treebf45834135f97e46e55fdc6a8f7b21c11de841d9
parent736c4655c3450ca9d846d5668dd4c5ea26465b38
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).
src/backend/storage/buffer/bufmgr.c