Fix typos in comments.
This commit is contained in:
parent
2e1b5d3f01
commit
51f41e8c0a
|
@ -893,10 +893,10 @@ LogStandbySnapshot(void)
|
||||||
* For Hot Standby this can be done before inserting the WAL record
|
* For Hot Standby this can be done before inserting the WAL record
|
||||||
* because ProcArrayApplyRecoveryInfo() rechecks the commit status using
|
* because ProcArrayApplyRecoveryInfo() rechecks the commit status using
|
||||||
* the clog. For logical decoding, though, the lock can't be released
|
* 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
|
* historic snapshot. This would allow for situations where we're waiting
|
||||||
* for the end of a transaction listed in the xl_running_xacts record
|
* 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
|
* record. Fortunately this routine isn't executed frequently, and it's
|
||||||
* only a shared lock.
|
* only a shared lock.
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -3587,7 +3587,7 @@ do_to_timestamp(text *date_txt, text *fmt,
|
||||||
if (tmfc.bc)
|
if (tmfc.bc)
|
||||||
tmfc.cc = -tmfc.cc;
|
tmfc.cc = -tmfc.cc;
|
||||||
if (tmfc.cc >= 0)
|
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;
|
tm->tm_year = (tmfc.cc - 1) * 100 + 1;
|
||||||
else
|
else
|
||||||
/* +1 because year == 599 is 600 BC */
|
/* +1 because year == 599 is 600 BC */
|
||||||
|
|
Loading…
Reference in New Issue