Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 1054c60

Browse files
committed
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
1 parent c037471 commit 1054c60

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/include/storage/proc.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ struct XidCache
9191
#define INVALID_PGPROCNO PG_INT32_MAX
9292

9393
/*
94-
* Flags for PGPROC.delayChkpt
94+
* Flags for PGPROC.delayChkptFlags
9595
*
9696
* These flags can be used to delay the start or completion of a checkpoint
9797
* for short periods. A flag is in effect if the corresponding bit is set in
@@ -118,7 +118,7 @@ struct XidCache
118118
* to phase 3. This is useful if we are performing a WAL-logged operation that
119119
* might invalidate buffers, such as relation truncation. In this case, we need
120120
* to ensure that any buffers which were invalidated and thus not flushed by
121-
* the checkpoint are actaully destroyed on disk. Replay can cope with a file
121+
* the checkpoint are actually destroyed on disk. Replay can cope with a file
122122
* or block that doesn't exist, but not with a block that has the wrong
123123
* contents.
124124
*/
@@ -149,7 +149,7 @@ typedef enum
149149
* but its myProcLocks[] lists are valid.
150150
*
151151
* We allow many fields of this struct to be accessed without locks, such as
152-
* delayChkpt and isBackgroundWorker. However, keep in mind that writing
152+
* delayChkptFlags and isBackgroundWorker. However, keep in mind that writing
153153
* mirrored ones (see below) requires holding ProcArrayLock or XidGenLock in
154154
* at least shared mode, so that pgxactoff does not change concurrently.
155155
*

0 commit comments

Comments
 (0)