Code review of recycling WAL segments in a restartpoint.
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Mon, 3 Jun 2013 06:25:12 +0000 (09:25 +0300)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Mon, 3 Jun 2013 06:25:12 +0000 (09:25 +0300)
commite1e2bb34f1237cbec396bcaa795f0fa955af0e72
tree5c03085bba3c1df19a86da77c4d7fc0dccc9b056
parent2c92edad48796119c83d7dbe6c33425d1924626d
Code review of recycling WAL segments in a restartpoint.

Seems cleaner to get the currently-replayed TLI in the same call to
GetXLogReplayRecPtr that we get the WAL position. Make it more clear in the
comment what the code does when recovery has already ended
(RecoveryInProgress() will set ThisTimeLineID in that case). Finally, make
resetting ThisTimeLineID afterwards more explicit.
src/backend/access/transam/xlog.c