Don't set recoveryLastXTime when replaying a checkpoint --- that was a bogus
authorTom Lane <tgl@sss.pgh.pa.us>
Sat, 3 Jul 2010 22:15:45 +0000 (22:15 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sat, 3 Jul 2010 22:15:45 +0000 (22:15 +0000)
commit8771634666252b5d679cb8701d50e2540f073d1e
tree1955c1064a66c0836c071a8a50c0b7bb55116a62
parentaceedd88f612472dae447fb59077abe8ed22f1f6
Don't set recoveryLastXTime when replaying a checkpoint --- that was a bogus
idea from the start since the variable is only meant to track commit/abort
events.  This patch reverts the logic around the variable to what it was in
8.4, except that the value is now kept in shared memory rather than a static
variable, so that it can be reported correctly by CreateRestartPoint (which is
executed in the bgwriter).
src/backend/access/transam/xlog.c