]> 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:11 +0000 (23:43 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 1 Jun 2007 23:43:11 +0000 (23:43 +0000)
commit964ec46cfe95028ca166dd5579e07b22c7434a91
tree72662bf36bfea602d8a6e865d6f2bddcb8f1a23e
parentf086be3d39ce003532ce818347354fe8d6efe8eb
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