aboutsummaryrefslogtreecommitdiff
path: root/src/backend/storage
diff options
context:
space:
mode:
authorDaniel Gustafsson <dgustafsson@postgresql.org>2024-04-18 21:28:07 +0200
committerDaniel Gustafsson <dgustafsson@postgresql.org>2024-04-18 21:28:07 +0200
commit950d4a2cb1d5f427dbccf70dbad510479cc4d8e6 (patch)
tree9991d70c6ff074e92b30a099b8a42ae61aa59818 /src/backend/storage
parentfbed6ebe41beb72d9b7978a414ed4e8515ed1b19 (diff)
downloadpostgresql-950d4a2cb1d5f427dbccf70dbad510479cc4d8e6.tar.gz
postgresql-950d4a2cb1d5f427dbccf70dbad510479cc4d8e6.zip
Fix typos and duplicate words
This fixes various typos, duplicated words, and tiny bits of whitespace mainly in code comments but also in docs. Author: Daniel Gustafsson <daniel@yesql.se> Author: Heikki Linnakangas <hlinnaka@iki.fi> Author: Alexander Lakhin <exclusion@gmail.com> Author: David Rowley <dgrowleyml@gmail.com> Author: Nazir Bilal Yavuz <byavuz81@gmail.com> Discussion: https://postgr.es/m/3F577953-A29E-4722-98AD-2DA9EFF2CBB8@yesql.se
Diffstat (limited to 'src/backend/storage')
-rw-r--r--src/backend/storage/aio/read_stream.c6
-rw-r--r--src/backend/storage/buffer/bufmgr.c2
-rw-r--r--src/backend/storage/lmgr/lock.c2
-rw-r--r--src/backend/storage/lmgr/proc.c2
4 files changed, 6 insertions, 6 deletions
diff --git a/src/backend/storage/aio/read_stream.c b/src/backend/storage/aio/read_stream.c
index f54dacdd914..634cf4f0d10 100644
--- a/src/backend/storage/aio/read_stream.c
+++ b/src/backend/storage/aio/read_stream.c
@@ -541,9 +541,9 @@ read_stream_begin_relation(int flags,
stream->distance = 1;
/*
- * Since we always always access the same relation, we can initialize
- * parts of the ReadBuffersOperation objects and leave them that way, to
- * avoid wasting CPU cycles writing to them for each read.
+ * Since we always access the same relation, we can initialize parts of
+ * the ReadBuffersOperation objects and leave them that way, to avoid
+ * wasting CPU cycles writing to them for each read.
*/
for (int i = 0; i < max_ios; ++i)
{
diff --git a/src/backend/storage/buffer/bufmgr.c b/src/backend/storage/buffer/bufmgr.c
index 901b7230fb9..49637284f91 100644
--- a/src/backend/storage/buffer/bufmgr.c
+++ b/src/backend/storage/buffer/bufmgr.c
@@ -1073,7 +1073,7 @@ PinBufferForBlock(Relation rel,
/*
* If there is no Relation it usually implies recovery and thus permanent,
- * but we take an argmument because CreateAndCopyRelationData can reach us
+ * but we take an argument because CreateAndCopyRelationData can reach us
* with only an SMgrRelation for an unlogged relation that we don't want
* to flag with BM_PERMANENT.
*/
diff --git a/src/backend/storage/lmgr/lock.c b/src/backend/storage/lmgr/lock.c
index 5022a50dd7b..5154353c844 100644
--- a/src/backend/storage/lmgr/lock.c
+++ b/src/backend/storage/lmgr/lock.c
@@ -1032,7 +1032,7 @@ LockAcquireExtended(const LOCKTAG *locktag,
/*
* Sleep till someone wakes me up. We do this even in the dontWait
- * case, beause while trying to go to sleep, we may discover that we
+ * case, because while trying to go to sleep, we may discover that we
* can acquire the lock immediately after all.
*/
diff --git a/src/backend/storage/lmgr/proc.c b/src/backend/storage/lmgr/proc.c
index 162b1f919db..e4f256c63c7 100644
--- a/src/backend/storage/lmgr/proc.c
+++ b/src/backend/storage/lmgr/proc.c
@@ -1047,7 +1047,7 @@ AuxiliaryPidGetProc(int pid)
* called, because it could be that when we try to find a position at which
* to insert ourself into the wait queue, we discover that we must be inserted
* ahead of everyone who wants a lock that conflict with ours. In that case,
- * we get the lock immediately. Beause of this, it's sensible for this function
+ * we get the lock immediately. Because of this, it's sensible for this function
* to have a dontWait argument, despite the name.
*
* The lock table's partition lock must be held at entry, and will be held