Repair boundary-case bug introduced by patch of two months ago that
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 17 Jul 2003 16:45:25 +0000 (16:45 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 17 Jul 2003 16:45:25 +0000 (16:45 +0000)
commit0414b16ec84dd0be386b7789e6edd7091861a769
tree365a9c429b16da789299de7ebdab4259e147ee4c
parent82cbbe29aa0aaa4d0e0a334e02ae254357330fb5
Repair boundary-case bug introduced by patch of two months ago that
fixed incorrect initial setting of StartUpID.  The logic in XLogWrite()
expects that Write->curridx is advanced to the next page as soon as
LogwrtResult points to the end of the current page, but StartupXLOG()
failed to make that happen when the old WAL ended exactly on a page
boundary.  Per trouble report from Hannu Krosing.
src/backend/access/transam/xlog.c