summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Paquier2022-10-15 03:22:29 +0000
committerMichael Paquier2022-10-15 03:22:29 +0000
commit1054c604bcdbae5de42beab2f60da7b0067cd4bb (patch)
treed1be9a2b6bbd7bff8205a168f0ea94374bc49139
parentc037471832e1ec3327f81eebbd8892e5c1042fe0 (diff)
Fix some comments in proc.h
There was a typo and two places where delayChkpt was still mentioned, but it is called delayChkptFlags these days. Author: David Christensen Discussion: https://postgr.es/m/CAOxo6XLB=ab_Y9jRw4iKyMZDns0wo=EGSRvijhhaL67RzqbtMg@mail.gmail.com
-rw-r--r--src/include/storage/proc.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/include/storage/proc.h b/src/include/storage/proc.h
index ed874459b3..8d096fdeeb 100644
--- a/src/include/storage/proc.h
+++ b/src/include/storage/proc.h
@@ -91,7 +91,7 @@ struct XidCache
#define INVALID_PGPROCNO PG_INT32_MAX
/*
- * Flags for PGPROC.delayChkpt
+ * Flags for PGPROC.delayChkptFlags
*
* These flags can be used to delay the start or completion of a checkpoint
* for short periods. A flag is in effect if the corresponding bit is set in
@@ -118,7 +118,7 @@ struct XidCache
* to phase 3. This is useful if we are performing a WAL-logged operation that
* might invalidate buffers, such as relation truncation. In this case, we need
* to ensure that any buffers which were invalidated and thus not flushed by
- * the checkpoint are actaully destroyed on disk. Replay can cope with a file
+ * the checkpoint are actually destroyed on disk. Replay can cope with a file
* or block that doesn't exist, but not with a block that has the wrong
* contents.
*/
@@ -149,7 +149,7 @@ typedef enum
* but its myProcLocks[] lists are valid.
*
* We allow many fields of this struct to be accessed without locks, such as
- * delayChkpt and isBackgroundWorker. However, keep in mind that writing
+ * delayChkptFlags and isBackgroundWorker. However, keep in mind that writing
* mirrored ones (see below) requires holding ProcArrayLock or XidGenLock in
* at least shared mode, so that pgxactoff does not change concurrently.
*