OSDN Git Service

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:04 +0000 (16:45 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 17 Jul 2003 16:45:04 +0000 (16:45 +0000)
commit8cf63ba920eaa84613bfa9f98d4a73e345b7c8bd
tree767ebf2533b61831c9fa41c6855f0e2ec6369abc
parentc15b66ef826dc7903e968a6e4dff91fb0866a303
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