diff options
author | Alvaro Herrera <alvherre@alvh.no-ip.org> | 2012-12-27 18:33:03 -0300 |
---|---|---|
committer | Alvaro Herrera <alvherre@alvh.no-ip.org> | 2012-12-27 18:33:03 -0300 |
commit | 24eca7977ed208de33791af8890975ffcf086598 (patch) | |
tree | f49719222ca78071f7b26222496db0a74d468197 /src/backend/access/transam/xlog.c | |
parent | eaa1f7220ae83997b56adcae1fbb7b2e92bfc050 (diff) | |
download | postgresql-24eca7977ed208de33791af8890975ffcf086598.tar.gz postgresql-24eca7977ed208de33791af8890975ffcf086598.zip |
Assign InvalidXLogRecPtr instead of MemSet(0)
For consistency.
Author: Andres Freund
Diffstat (limited to 'src/backend/access/transam/xlog.c')
-rw-r--r-- | src/backend/access/transam/xlog.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/backend/access/transam/xlog.c b/src/backend/access/transam/xlog.c index 54df3e6df94..0b1a9c21d5b 100644 --- a/src/backend/access/transam/xlog.c +++ b/src/backend/access/transam/xlog.c @@ -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(); |