diff options
author | Michael Paquier <michael@paquier.xyz> | 2019-08-19 16:21:39 +0900 |
---|---|---|
committer | Michael Paquier <michael@paquier.xyz> | 2019-08-19 16:21:39 +0900 |
commit | c96581abe418a3bf64b643aa4e27091d1eaea1c1 (patch) | |
tree | 9a311850bacb63d295ce38e006ed10121cf3eae4 /src/backend/access/transam/xlog.c | |
parent | 927f34ce8a215c8b254136f710cca9ca4da1352c (diff) | |
download | postgresql-c96581abe418a3bf64b643aa4e27091d1eaea1c1.tar.gz postgresql-c96581abe418a3bf64b643aa4e27091d1eaea1c1.zip |
Fix inconsistencies and typos in the tree, take 11
This fixes various typos in docs and comments, and removes some orphaned
definitions.
Author: Alexander Lakhin
Discussion: https://postgr.es/m/5da8e325-c665-da95-21e0-c8a99ea61fbf@gmail.com
Diffstat (limited to 'src/backend/access/transam/xlog.c')
-rw-r--r-- | src/backend/access/transam/xlog.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/backend/access/transam/xlog.c b/src/backend/access/transam/xlog.c index f5535238573..e651a841bbe 100644 --- a/src/backend/access/transam/xlog.c +++ b/src/backend/access/transam/xlog.c @@ -626,7 +626,7 @@ typedef struct XLogCtlData /* * These values do not change after startup, although the pointed-to pages - * and xlblocks values certainly do. xlblock values are protected by + * and xlblocks values certainly do. xlblocks values are protected by * WALBufMappingLock. */ char *pages; /* buffers for unwritten XLOG pages */ @@ -743,7 +743,7 @@ static ControlFileData *ControlFile = NULL; */ #define UsableBytesInPage (XLOG_BLCKSZ - SizeOfXLogShortPHD) -/* Convert min_wal_size_mb and max wal_size_mb to equivalent segment count */ +/* Convert min_wal_size_mb and max_wal_size_mb to equivalent segment count */ #define ConvertToXSegs(x, segsize) \ (x / ((segsize) / (1024 * 1024))) @@ -903,7 +903,7 @@ static XLogRecord *ReadRecord(XLogReaderState *xlogreader, XLogRecPtr RecPtr, int emode, bool fetching_ckpt); static void CheckRecoveryConsistency(void); static XLogRecord *ReadCheckpointRecord(XLogReaderState *xlogreader, - XLogRecPtr RecPtr, int whichChkpti, bool report); + XLogRecPtr RecPtr, int whichChkpt, bool report); static bool rescanLatestTimeLine(void); static void WriteControlFile(void); static void ReadControlFile(void); @@ -3049,9 +3049,9 @@ XLogBackgroundFlush(void) else if (TimestampDifferenceExceeds(lastflush, now, WalWriterDelay)) { /* - * Flush the writes at least every WalWriteDelay ms. This is important - * to bound the amount of time it takes for an asynchronous commit to - * hit disk. + * Flush the writes at least every WalWriterDelay ms. This is + * important to bound the amount of time it takes for an asynchronous + * commit to hit disk. */ WriteRqst.Flush = WriteRqst.Write; lastflush = now; @@ -8442,7 +8442,7 @@ LogCheckpointEnd(bool restartpoint) * Update the estimate of distance between checkpoints. * * The estimate is used to calculate the number of WAL segments to keep - * preallocated, see XLOGFileSlop(). + * preallocated, see XLOGfileslop(). */ static void UpdateCheckPointDistanceEstimate(uint64 nbytes) |