Fix incorrect logic for clearing BufferDirtiedByMe in ReleaseRelationBuffers
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 22 Oct 2000 20:20:49 +0000 (20:20 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 22 Oct 2000 20:20:49 +0000 (20:20 +0000)
commit3c5d000749131f32bd77bae30add25035c1fd070
tree17d08e86314172c8984bd4a282f33a992120eae1
parent5aeec4bbbc8d3cbc79a3af5ca33542531744aaf2
Fix incorrect logic for clearing BufferDirtiedByMe in ReleaseRelationBuffers
and DropBuffers.  Formerly we cleared the flag for each buffer currently
belonging to the target rel or database, but that's completely wrong!
Must look at BufferTagLastDirtied to see whether the BufferDirtiedByMe
flag is relevant to target rel or not; this is *independent* of the
current contents of the buffer.  Vadim spotted this problem, but his
fix was only partially correct...
src/backend/storage/buffer/bufmgr.c