diff options
author | Michael Paquier <michael@paquier.xyz> | 2025-04-19 19:17:42 +0900 |
---|---|---|
committer | Michael Paquier <michael@paquier.xyz> | 2025-04-19 19:17:42 +0900 |
commit | 88e947136b47664b6936b35542f2d1eda0c90588 (patch) | |
tree | 6a5999ed2088fb1455940632b70a8d452ec56347 /src/backend/access/transam/xlog.c | |
parent | 114f7fa81c72637d75b574269f2076dcc1104e24 (diff) | |
download | postgresql-88e947136b47664b6936b35542f2d1eda0c90588.tar.gz postgresql-88e947136b47664b6936b35542f2d1eda0c90588.zip |
Fix typos and grammar in the code
The large majority of these have been introduced by recent commits done
in the v18 development cycle.
Author: Alexander Lakhin <exclusion@gmail.com>
Discussion: https://postgr.es/m/9a7763ab-5252-429d-a943-b28941e0e28b@gmail.com
Diffstat (limited to 'src/backend/access/transam/xlog.c')
-rw-r--r-- | src/backend/access/transam/xlog.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/backend/access/transam/xlog.c b/src/backend/access/transam/xlog.c index ec40c0b7c42..2d4c346473b 100644 --- a/src/backend/access/transam/xlog.c +++ b/src/backend/access/transam/xlog.c @@ -473,7 +473,7 @@ typedef struct XLogCtlData XLogRecPtr InitializedFrom; /* - * Latest reserved for inititalization page in the cache (last byte + * Latest reserved for initialization page in the cache (last byte * position + 1). * * To change the identity of a buffer, you need to advance @@ -2221,7 +2221,7 @@ AdvanceXLInsertBuffer(XLogRecPtr upto, TimeLineID tli, bool opportunistic) * m must observe f[k] == false. Otherwise, it will later attempt * CAS(v, k, k + 1) with success. * 4. Therefore, corresponding read_barrier() (while j == k) on - * process m happend before write_barrier() of process k. But then + * process m reached before write_barrier() of process k. But then * process k attempts CAS(v, k, k + 1) after process m successfully * incremented v to k, and that CAS operation must succeed. * That leads to a contradiction. So, there is no such k (k < n) @@ -2253,7 +2253,7 @@ AdvanceXLInsertBuffer(XLogRecPtr upto, TimeLineID tli, bool opportunistic) if (pg_atomic_read_u64(&XLogCtl->xlblocks[nextidx]) != NewPageEndPtr) { /* - * Page at nextidx wasn't initialized yet, so we cann't move + * Page at nextidx wasn't initialized yet, so we can't move * InitializedUpto further. It will be moved by backend which * will initialize nextidx. */ |