|
7 | 7 | * Portions Copyright (c) 1996-2009, PostgreSQL Global Development Group
|
8 | 8 | * Portions Copyright (c) 1994, Regents of the University of California
|
9 | 9 | *
|
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 $ |
11 | 11 | *
|
12 | 12 | *-------------------------------------------------------------------------
|
13 | 13 | */
|
@@ -6882,6 +6882,8 @@ CreateCheckPoint(int flags)
|
6882 | 6882 | ControlFile->checkPoint=ProcLastRecPtr;
|
6883 | 6883 | ControlFile->checkPointCopy=checkPoint;
|
6884 | 6884 | 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)); |
6885 | 6887 | UpdateControlFile();
|
6886 | 6888 | LWLockRelease(ControlFileLock);
|
6887 | 6889 |
|
|