]> 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:28 +0000 (23:43 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 1 Jun 2007 23:43:28 +0000 (23:43 +0000)
commitbc7ccdfe461e9472f736a2809342135eea661692
tree84503db0327b923aaeae2bc065c213c032e1049e
parent962cd2344e256ab783584c961a6a67de0c98015b
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