|
|
|
@ -6393,8 +6393,8 @@ CheckRecoveryConsistency(void) |
|
|
|
|
if (XLByteLT(ControlFile->minRecoveryPoint, EndRecPtr)) |
|
|
|
|
ControlFile->minRecoveryPoint = EndRecPtr; |
|
|
|
|
|
|
|
|
|
MemSet(&ControlFile->backupStartPoint, 0, sizeof(XLogRecPtr)); |
|
|
|
|
MemSet(&ControlFile->backupEndPoint, 0, sizeof(XLogRecPtr)); |
|
|
|
|
ControlFile->backupStartPoint = InvalidXLogRecPtr; |
|
|
|
|
ControlFile->backupEndPoint = InvalidXLogRecPtr; |
|
|
|
|
ControlFile->backupEndRequired = false; |
|
|
|
|
UpdateControlFile(); |
|
|
|
|
|
|
|
|
@ -7330,7 +7330,7 @@ CreateCheckPoint(int flags) |
|
|
|
|
ControlFile->checkPointCopy = checkPoint; |
|
|
|
|
ControlFile->time = (pg_time_t) time(NULL); |
|
|
|
|
/* crash recovery should always recover to the end of WAL */ |
|
|
|
|
MemSet(&ControlFile->minRecoveryPoint, 0, sizeof(XLogRecPtr)); |
|
|
|
|
ControlFile->minRecoveryPoint = InvalidXLogRecPtr; |
|
|
|
|
ControlFile->minRecoveryPointTLI = 0; |
|
|
|
|
UpdateControlFile(); |
|
|
|
|
LWLockRelease(ControlFileLock); |
|
|
|
@ -8161,7 +8161,7 @@ xlog_redo(XLogRecPtr lsn, XLogRecord *record) |
|
|
|
|
ControlFile->minRecoveryPoint = lsn; |
|
|
|
|
ControlFile->minRecoveryPointTLI = ThisTimeLineID; |
|
|
|
|
} |
|
|
|
|
MemSet(&ControlFile->backupStartPoint, 0, sizeof(XLogRecPtr)); |
|
|
|
|
ControlFile->backupStartPoint = InvalidXLogRecPtr; |
|
|
|
|
ControlFile->backupEndRequired = false; |
|
|
|
|
UpdateControlFile(); |
|
|
|
|
|
|
|
|
|