]> granicus.if.org Git - postgresql/commit
Awhile back I added some code to StartupCLOG() to forcibly zero out
authorTom Lane <tgl@sss.pgh.pa.us>
Wed, 22 Dec 2004 18:45:49 +0000 (18:45 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Wed, 22 Dec 2004 18:45:49 +0000 (18:45 +0000)
commitbfa5f304818bcb560e5a86b07a233a1eb3e770c1
treeb56ea07e702b2ebdf5a2e0a8394c3e004ddf2068
parent766b0bbb4d1441d481e392e86cdd3171fde6aefe
Awhile back I added some code to StartupCLOG() to forcibly zero out
the remainder of the current clog page during system startup.  While
this was a good idea, it turns out the code fails if nextXid is
exactly at a page boundary, because we won't have created the "current"
clog page yet in that case.  Since the page will be correctly zeroed
when we execute the first transaction on it, the solution is just to
do nothing when exactly at a page boundary.  Per trouble report from
Dave Hartwig.
src/backend/access/transam/clog.c