diff options
author | Heikki Linnakangas <heikki.linnakangas@iki.fi> | 2015-05-20 16:18:11 +0300 |
---|---|---|
committer | Heikki Linnakangas <heikki.linnakangas@iki.fi> | 2015-05-20 16:56:22 +0300 |
commit | 4fc72cc7bb9d2105261b8ee45558af50d788cd19 (patch) | |
tree | 57f1b8dda880693ac01ead8945ad18734e24677f /src/backend/access/transam | |
parent | f6a54fefc299b933052885bb0532c476d382cc71 (diff) | |
download | postgresql-4fc72cc7bb9d2105261b8ee45558af50d788cd19.tar.gz postgresql-4fc72cc7bb9d2105261b8ee45558af50d788cd19.zip |
Collection of typo fixes.
Use "a" and "an" correctly, mostly in comments. Two error messages were
also fixed (they were just elogs, so no translation work required). Two
function comments in pg_proc.h were also fixed. Etsuro Fujita reported one
of these, but I found a lot more with grep.
Also fix a few other typos spotted while grepping for the a/an typos.
For example, "consists out of ..." -> "consists of ...". Plus a "though"/
"through" mixup reported by Euler Taveira.
Many of these typos were in old code, which would be nice to backpatch to
make future backpatching easier. But much of the code was new, and I didn't
feel like crafting separate patches for each branch. So no backpatching.
Diffstat (limited to 'src/backend/access/transam')
-rw-r--r-- | src/backend/access/transam/commit_ts.c | 2 | ||||
-rw-r--r-- | src/backend/access/transam/xact.c | 10 | ||||
-rw-r--r-- | src/backend/access/transam/xlog.c | 2 |
3 files changed, 7 insertions, 7 deletions
diff --git a/src/backend/access/transam/commit_ts.c b/src/backend/access/transam/commit_ts.c index 40042a5fd53..63344327e3d 100644 --- a/src/backend/access/transam/commit_ts.c +++ b/src/backend/access/transam/commit_ts.c @@ -122,7 +122,7 @@ static void WriteSetTimestampXlogRec(TransactionId mainxid, int nsubxids, * subtrans implementation changes in the future, we might want to revisit the * decision of storing timestamp info for each subxid. * - * The do_xlog parameter tells us whether to include a XLog record of this + * The do_xlog parameter tells us whether to include an XLog record of this * or not. Normal path through RecordTransactionCommit() will be related * to a transaction commit XLog record, and so should pass "false" here. * Other callers probably want to pass true, so that the given values persist diff --git a/src/backend/access/transam/xact.c b/src/backend/access/transam/xact.c index f6009e07473..62f00455e1b 100644 --- a/src/backend/access/transam/xact.c +++ b/src/backend/access/transam/xact.c @@ -221,7 +221,7 @@ static TransactionStateData TopTransactionStateData = { /* * unreportedXids holds XIDs of all subtransactions that have not yet been - * reported in a XLOG_XACT_ASSIGNMENT record. + * reported in an XLOG_XACT_ASSIGNMENT record. */ static int nUnreportedXids; static TransactionId unreportedXids[PGPROC_MAX_CACHED_SUBXIDS]; @@ -532,7 +532,7 @@ AssignTransactionId(TransactionState s) /* * When wal_level=logical, guarantee that a subtransaction's xid can only * be seen in the WAL stream if its toplevel xid has been logged before. - * If necessary we log a xact_assignment record with fewer than + * If necessary we log an xact_assignment record with fewer than * PGPROC_MAX_CACHED_SUBXIDS. Note that it is fine if didLogXid isn't set * for a transaction even though it appears in a WAL record, we just might * superfluously log something. That can happen when an xid is included @@ -1232,8 +1232,8 @@ RecordTransactionCommit(void) * Check if we want to commit asynchronously. We can allow the XLOG flush * to happen asynchronously if synchronous_commit=off, or if the current * transaction has not performed any WAL-logged operation or didn't assign - * a xid. The transaction can end up not writing any WAL, even if it has - * a xid, if it only wrote to temporary and/or unlogged tables. It can + * an xid. The transaction can end up not writing any WAL, even if it has + * an xid, if it only wrote to temporary and/or unlogged tables. It can * end up having written WAL without an xid if it did HOT pruning. In * case of a crash, the loss of such a transaction will be irrelevant; * temp tables will be lost anyway, unlogged tables will be truncated and @@ -1305,7 +1305,7 @@ RecordTransactionCommit(void) /* * Wait for synchronous replication, if required. Similar to the decision * above about using committing asynchronously we only want to wait if - * this backend assigned a xid and wrote WAL. No need to wait if a xid + * this backend assigned an xid and wrote WAL. No need to wait if an xid * was assigned due to temporary/unlogged tables or due to HOT pruning. * * Note that at this stage we have marked clog, but still show as running diff --git a/src/backend/access/transam/xlog.c b/src/backend/access/transam/xlog.c index b203b82899a..4af8fdc3642 100644 --- a/src/backend/access/transam/xlog.c +++ b/src/backend/access/transam/xlog.c @@ -8832,7 +8832,7 @@ CreateRestartPoint(int flags) } /* - * Due to an historical accident multixact truncations are not WAL-logged, + * Due to a historical accident multixact truncations are not WAL-logged, * but just performed everytime the mxact horizon is increased. So, unless * we explicitly execute truncations on a standby it will never clean out * /pg_multixact which obviously is bad, both because it uses space and |