]> granicus.if.org Git - postgresql/commit
Fix aboriginal bug in BufFileDumpBuffer that would cause it to write the
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 1 Jun 2007 23:43:34 +0000 (23:43 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 1 Jun 2007 23:43:34 +0000 (23:43 +0000)
commit20c031eb8a9e9d0e74159d8d1d0dd1f77c3db648
treeb8cb149ed23377afc7afed960f9bbc79e7ebc75b
parent86b6abe9805e9457389c78f8ddbdfe2c91a7c90c
Fix aboriginal bug in BufFileDumpBuffer that would cause it to write the
wrong data when dumping a bufferload that crosses a component-file boundary.
This probably has not been seen in the wild because (a) component files are
normally 1GB apiece and (b) non-block-aligned buffer usage is relatively
rare.  But it's fairly easy to reproduce a problem if one reduces RELSEG_SIZE
in a test build.  Kudos to Kurt Harriman for spotting the bug.
src/backend/storage/file/buffile.c