File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
src/backend/access/transam Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 77 * Portions Copyright (c) 1996-2009, PostgreSQL Global Development Group
88 * Portions Copyright (c) 1994, Regents of the University of California
99 *
10- * $PostgreSQL: pgsql/src/backend/access/transam/xlog.c,v 1.354 2009/12/19 01:32:33 sriggs Exp $
10+ * $PostgreSQL: pgsql/src/backend/access/transam/xlog.c,v 1.355 2009/12/30 08:37:21 heikki Exp $
1111 *
1212 *-------------------------------------------------------------------------
1313 */
@@ -6882,6 +6882,8 @@ CreateCheckPoint(int flags)
68826882 ControlFile -> checkPoint = ProcLastRecPtr ;
68836883 ControlFile -> checkPointCopy = checkPoint ;
68846884 ControlFile -> time = (pg_time_t ) time (NULL );
6885+ /* crash recovery should always recover to the end of WAL */
6886+ MemSet (& ControlFile -> minRecoveryPoint , 0 , sizeof (XLogRecPtr ));
68856887 UpdateControlFile ();
68866888 LWLockRelease (ControlFileLock );
68876889
You can’t perform that action at this time.
0 commit comments