Thread: pgsql: Code review of recycling WAL segments in a restartpoint.

pgsql: Code review of recycling WAL segments in a restartpoint.

From
Heikki Linnakangas
Date:
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.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/e1e2bb34f1237cbec396bcaa795f0fa955af0e72

Modified Files
--------------
src/backend/access/transam/xlog.c |   30 +++++++++++++++---------------
1 file changed, 15 insertions(+), 15 deletions(-)