pgsql: Code review of recycling WAL segments in a restartpoint. - Mailing list pgsql-committers

From Heikki Linnakangas
Subject pgsql: Code review of recycling WAL segments in a restartpoint.
Date
Msg-id E1UjOsw-0000wt-MW@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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(-)


pgsql-committers by date:

Previous
From: Noah Misch
Date:
Subject: pgsql: Don't emit non-canonical empty arrays in array_remove().
Next
From: Stephen Frost
Date:
Subject: pgsql: Additional spelling corrections