@@ -87,7 +87,7 @@ typedef struct
8787 XLogRecPtr pending_lsn ;
8888
8989 /*
90- * This field handles its own synchronizaton .
90+ * This field handles its own synchronization .
9191 */
9292 ConditionVariable summary_file_cv ;
9393} WalSummarizerData ;
@@ -117,7 +117,7 @@ static long sleep_quanta = 1;
117117/*
118118 * The sleep time will always be a multiple of 200ms and will not exceed
119119 * thirty seconds (150 * 200 = 30 * 1000). Note that the timeout here needs
120- * to be substntially less than the maximum amount of time for which an
120+ * to be substantially less than the maximum amount of time for which an
121121 * incremental backup will wait for this process to catch up. Otherwise, an
122122 * incremental backup might time out on an idle system just because we sleep
123123 * for too long.
@@ -212,7 +212,7 @@ WalSummarizerMain(void)
212212 /*
213213 * Within this function, 'current_lsn' and 'current_tli' refer to the
214214 * point from which the next WAL summary file should start. 'exact' is
215- * true if 'current_lsn' is known to be the start of a WAL recod or WAL
215+ * true if 'current_lsn' is known to be the start of a WAL record or WAL
216216 * segment, and false if it might be in the middle of a record someplace.
217217 *
218218 * 'switch_lsn' and 'switch_tli', if set, are the LSN at which we need to
@@ -297,7 +297,7 @@ WalSummarizerMain(void)
297297
298298 /*
299299 * Sleep for 10 seconds before attempting to resume operations in
300- * order to avoid excessing logging.
300+ * order to avoid excessive logging.
301301 *
302302 * Many of the likely error conditions are things that will repeat
303303 * every time. For example, if the WAL can't be read or the summary
@@ -449,7 +449,7 @@ GetOldestUnsummarizedLSN(TimeLineID *tli, bool *lsn_is_exact,
449449 return InvalidXLogRecPtr ;
450450
451451 /*
452- * Unless we need to reset the pending_lsn, we initally acquire the lock
452+ * Unless we need to reset the pending_lsn, we initially acquire the lock
453453 * in shared mode and try to fetch the required information. If we acquire
454454 * in shared mode and find that the data structure hasn't been
455455 * initialized, we reacquire the lock in exclusive mode so that we can
@@ -699,7 +699,7 @@ HandleWalSummarizerInterrupts(void)
699699 *
700700 * 'start_lsn' is the point at which we should start summarizing. If this
701701 * value comes from the end LSN of the previous record as returned by the
702- * xlograder machinery, 'exact' should be true; otherwise, 'exact' should
702+ * xlogreader machinery, 'exact' should be true; otherwise, 'exact' should
703703 * be false, and this function will search forward for the start of a valid
704704 * WAL record.
705705 *
@@ -872,7 +872,7 @@ SummarizeWAL(TimeLineID tli, XLogRecPtr start_lsn, bool exact,
872872 xlogreader -> ReadRecPtr >= switch_lsn )
873873 {
874874 /*
875- * Woops ! We've read a record that *starts* after the switch LSN,
875+ * Whoops ! We've read a record that *starts* after the switch LSN,
876876 * contrary to our goal of reading only until we hit the first
877877 * record that ends at or after the switch LSN. Pretend we didn't
878878 * read it after all by bailing out of this loop right here,
@@ -1061,7 +1061,7 @@ SummarizeSmgrRecord(XLogReaderState *xlogreader, BlockRefTable *brtab)
10611061}
10621062
10631063/*
1064- * Special handling for WAL recods with RM_XACT_ID.
1064+ * Special handling for WAL records with RM_XACT_ID.
10651065 */
10661066static void
10671067SummarizeXactRecord (XLogReaderState * xlogreader , BlockRefTable * brtab )
@@ -1116,7 +1116,7 @@ SummarizeXactRecord(XLogReaderState *xlogreader, BlockRefTable *brtab)
11161116}
11171117
11181118/*
1119- * Special handling for WAL recods with RM_XLOG_ID.
1119+ * Special handling for WAL records with RM_XLOG_ID.
11201120 */
11211121static bool
11221122SummarizeXlogRecord (XLogReaderState * xlogreader )
@@ -1294,8 +1294,7 @@ summarizer_wait_for_wal(void)
12941294 * sleep time to the minimum, but we don't want a handful of extra WAL
12951295 * records to provoke a strong reaction. We choose to reduce the sleep
12961296 * time by 1 quantum for each page read beyond the first, which is a
1297- * fairly arbitrary way of trying to be reactive without
1298- * overrreacting.
1297+ * fairly arbitrary way of trying to be reactive without overreacting.
12991298 */
13001299 if (pages_read_since_last_sleep > sleep_quanta - 1 )
13011300 sleep_quanta = 1 ;
0 commit comments