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:17 +0000 (23:43 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 1 Jun 2007 23:43:17 +0000 (23:43 +0000)
commit1e172f9692eb8ab0d7fa221910ec8839f5325229
treea814a00f3964ec8180688d51a48b211f1162828d
parent3e2c198e06a5c67f8adbcaf53c7d65ed504c72dd
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