OSDN Git Service

When updating ShmemVariableCache from a checkpoint record, be sure to set
authorTom Lane <tgl@sss.pgh.pa.us>
Wed, 17 Feb 2010 03:10:33 +0000 (03:10 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Wed, 17 Feb 2010 03:10:33 +0000 (03:10 +0000)
commitc64339face6e9abd041ab58ade2aceb48a9f4956
tree36496185d3ecc39934b5f551ab2d557bc17ded01
parent711804fddd54ea3c20d32c4b53d05a8c59bcbe4f
When updating ShmemVariableCache from a checkpoint record, be sure to set
all the values derived from oldestXid, not just that field.  Brain fade in
one of my patches associated with flat file removal, exposed by a report
from Fujii Masao.

With this change, xidVacLimit should always be valid, so remove a couple of
bits of complexity associated with the previous assumption that sometimes
it wouldn't get set right away.
src/backend/access/transam/varsup.c
src/backend/access/transam/xlog.c