aboutsummaryrefslogtreecommitdiff
path: root/src/include/storage/proc.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/storage/proc.h')
-rw-r--r--src/include/storage/proc.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/include/storage/proc.h b/src/include/storage/proc.h
index 9c9a50ae457..1067f58f51b 100644
--- a/src/include/storage/proc.h
+++ b/src/include/storage/proc.h
@@ -49,7 +49,7 @@ struct XidCache
};
/*
- * Flags for ProcGlobal->vacuumFlags[]
+ * Flags for PGPROC->statusFlags and PROC_HDR->statusFlags[]
*/
#define PROC_IS_AUTOVACUUM 0x01 /* is it an autovac worker? */
#define PROC_IN_VACUUM 0x02 /* currently running lazy vacuum */
@@ -175,9 +175,10 @@ struct PGPROC
bool delayChkpt; /* true if this proc delays checkpoint start */
- uint8 vacuumFlags; /* this backend's vacuum flags, see PROC_*
+ uint8 statusFlags; /* this backend's status flags, see PROC_*
* above. mirrored in
- * ProcGlobal->vacuumFlags[pgxactoff] */
+ * ProcGlobal->statusFlags[pgxactoff] */
+
/*
* Info to allow us to wait for synchronous replication, if needed.
* waitLSN is InvalidXLogRecPtr if not waiting; set only by user backend.
@@ -273,7 +274,7 @@ extern PGDLLIMPORT PGPROC *MyProc;
* allow for as tight loops accessing the data as possible. Second, to prevent
* updates of frequently changing data (e.g. xmin) from invalidating
* cachelines also containing less frequently changing data (e.g. xid,
- * vacuumFlags). Third to condense frequently accessed data into as few
+ * statusFlags). Third to condense frequently accessed data into as few
* cachelines as possible.
*
* There are two main reasons to have the data mirrored between these dense
@@ -315,10 +316,10 @@ typedef struct PROC_HDR
XidCacheStatus *subxidStates;
/*
- * Array mirroring PGPROC.vacuumFlags for each PGPROC currently in the
+ * Array mirroring PGPROC.statusFlags for each PGPROC currently in the
* procarray.
*/
- uint8 *vacuumFlags;
+ uint8 *statusFlags;
/* Length of allProcs array */
uint32 allProcCount;