Fix aboriginal bug in BufFileDumpBuffer that would cause it to write the

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 72cbfa4fcc6718fcd8c4eb479d0353b8802ce322
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2007-06-01T23:43:39Z
Releases: 7.3.20
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.

Files

PathChange+/−
src/backend/storage/file/buffile.c modified +2 −2