summaryrefslogtreecommitdiff
path: root/src/include/storage/proc.h
diff options
context:
space:
mode:
authorSimon Riggs2012-12-03 13:13:53 +0000
committerSimon Riggs2012-12-03 13:13:53 +0000
commitf21bb9cfb5646e1793dcc9c0ea697bab99afa523 (patch)
tree762c5554c78e8949f97dbb17f25b4fc16416600b /src/include/storage/proc.h
parent7a764990d8c07c5f8f6c7ff3e8605d482b6778e0 (diff)
Refactor inCommit flag into generic delayChkpt flag.
Rename PGXACT->inCommit flag into delayChkpt flag, and generalise comments to allow use in other situations, such as the forthcoming potential use in checksum patch. Replace wait loop to look for VXIDs with delayChkpt set. No user visible changes, not behaviour changes at present. Simon Riggs, reviewed and rebased by Jeff Davis
Diffstat (limited to 'src/include/storage/proc.h')
-rw-r--r--src/include/storage/proc.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/include/storage/proc.h b/src/include/storage/proc.h
index e10aafe99e4..686ac486574 100644
--- a/src/include/storage/proc.h
+++ b/src/include/storage/proc.h
@@ -168,7 +168,8 @@ typedef struct PGXACT
uint8 vacuumFlags; /* vacuum-related flags, see above */
bool overflowed;
- bool inCommit; /* true if within commit critical section */
+ bool delayChkpt; /* true if this proc delays checkpoint start */
+ /* previously called InCommit */
uint8 nxids;
} PGXACT;