aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniel Gustafsson <dgustafsson@postgresql.org>2022-11-17 09:12:51 +0100
committerDaniel Gustafsson <dgustafsson@postgresql.org>2022-11-17 09:12:51 +0100
commitaba2dbb3cf6283348a5f467b11820448fb4eaeb6 (patch)
treeb0099207ff6d313b5d4f3cd66d7ac97a908c1ffb /src
parent3894d21d22eba8438743eaf453b2f2c85e479125 (diff)
downloadpostgresql-aba2dbb3cf6283348a5f467b11820448fb4eaeb6.tar.gz
postgresql-aba2dbb3cf6283348a5f467b11820448fb4eaeb6.zip
Fix typos in comments
Fix various misspellings of xl_running_xacts. Author: Japin Li <japinli@hotmail.com> Discussion: https://postgr.es/m/MEYP282MB1669CA2A39ACF0172774ED27B6069@MEYP282MB1669.AUSP282.PROD.OUTLOOK.COM
Diffstat (limited to 'src')
-rw-r--r--src/backend/replication/logical/snapbuild.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/backend/replication/logical/snapbuild.c b/src/backend/replication/logical/snapbuild.c
index 5006a5c464f..556b7fcba38 100644
--- a/src/backend/replication/logical/snapbuild.c
+++ b/src/backend/replication/logical/snapbuild.c
@@ -93,7 +93,7 @@
* Initially the machinery is in the START stage. When an xl_running_xacts
* record is read that is sufficiently new (above the safe xmin horizon),
* there's a state transition. If there were no running xacts when the
- * running_xacts record was generated, we'll directly go into CONSISTENT
+ * xl_running_xacts record was generated, we'll directly go into CONSISTENT
* state, otherwise we'll switch to the BUILDING_SNAPSHOT state. Having a full
* snapshot means that all transactions that start henceforth can be decoded
* in their entirety, but transactions that started previously can't. In
@@ -1331,7 +1331,7 @@ SnapBuildFindSnapshot(SnapBuild *builder, XLogRecPtr lsn, xl_running_xacts *runn
*/
/*
- * xl_running_xact record is older than what we can use, we might not have
+ * xl_running_xacts record is older than what we can use, we might not have
* all necessary catalog rows anymore.
*/
if (TransactionIdIsNormal(builder->initial_xmin_horizon) &&
@@ -1399,7 +1399,7 @@ SnapBuildFindSnapshot(SnapBuild *builder, XLogRecPtr lsn, xl_running_xacts *runn
* encountered. In that case, switch to BUILDING_SNAPSHOT state, and
* record xl_running_xacts->nextXid. Once all running xacts have finished
* (i.e. they're all >= nextXid), we have a complete catalog snapshot. It
- * might look that we could use xl_running_xact's ->xids information to
+ * might look that we could use xl_running_xacts's ->xids information to
* get there quicker, but that is problematic because transactions marked
* as running, might already have inserted their commit record - it's
* infeasible to change that with locking.