pgsql: Better fix for "unarchived WAL files get deleted on crash recove

Lists: pgsql-committers
From: Heikki Linnakangas <heikki(dot)linnakangas(at)iki(dot)fi>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Better fix for "unarchived WAL files get deleted on crash recove
Date: 2013-02-15 17:40:19
Message-ID: E1U6PGl-0004h4-Rs@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-committers

Better fix for "unarchived WAL files get deleted on crash recovery" bug.

Revert my earlier fix for the bug that unarchived WAL files get deleted on
crash recovery, commit c9cc7e05c6d82a9781883a016c70d95aa4923122. We create
a .done file for files streamed or restored from archive, so the WAL file
recycling logic used during normal operation works just as well during
archive recovery.

Per Fujii Masao's suggestion.

Branch
------
REL9_2_STABLE

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

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