Fix typos in comments.
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Thu, 22 May 2014 03:18:38 +0000 (23:18 -0400)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Thu, 22 May 2014 03:19:01 +0000 (23:19 -0400)
src/backend/storage/ipc/standby.c
src/backend/utils/adt/formatting.c

index d0abe4117f8b5238547e4393f51ae658621af321..1c327fd45c71e1dca419fafb5ab8af3ab5263d78 100644 (file)
@@ -893,10 +893,10 @@ LogStandbySnapshot(void)
     * For Hot Standby this can be done before inserting the WAL record
     * because ProcArrayApplyRecoveryInfo() rechecks the commit status using
     * the clog. For logical decoding, though, the lock can't be released
-    * early becuase the clog might be "in the future" from the POV of the
+    * early because the clog might be "in the future" from the POV of the
     * historic snapshot. This would allow for situations where we're waiting
     * for the end of a transaction listed in the xl_running_xacts record
-    * which, according to the WAL, have commit before the xl_running_xacts
+    * which, according to the WAL, has committed before the xl_running_xacts
     * record. Fortunately this routine isn't executed frequently, and it's
     * only a shared lock.
     */
index 15bcefd0021ea9629e2b0c2be49e305dc18470dc..e14d7bcc1319c1585b7509b89e7fc5752004ce6d 100644 (file)
@@ -3587,7 +3587,7 @@ do_to_timestamp(text *date_txt, text *fmt,
        if (tmfc.bc)
            tmfc.cc = -tmfc.cc;
        if (tmfc.cc >= 0)
-           /* +1 becuase 21st century started in 2001 */
+           /* +1 because 21st century started in 2001 */
            tm->tm_year = (tmfc.cc - 1) * 100 + 1;
        else
            /* +1 because year == 599 is 600 BC */