aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Riggs <simon@2ndQuadrant.com>2012-11-29 22:15:52 +0000
committerSimon Riggs <simon@2ndQuadrant.com>2012-11-29 22:15:52 +0000
commitd3fe59939c142f2adad2a9cca03e0e0d27c162a4 (patch)
tree3233b1b4e91fb6dd25d8e0524658c2b567c7404a
parentf1e57a4ec9c0ce875683d556909a28a5549da455 (diff)
downloadpostgresql-d3fe59939c142f2adad2a9cca03e0e0d27c162a4.tar.gz
postgresql-d3fe59939c142f2adad2a9cca03e0e0d27c162a4.zip
Correctly init fast path fields on PGPROC
-rw-r--r--src/backend/storage/lmgr/proc.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/backend/storage/lmgr/proc.c b/src/backend/storage/lmgr/proc.c
index 5ae1506038c..429525b6eac 100644
--- a/src/backend/storage/lmgr/proc.c
+++ b/src/backend/storage/lmgr/proc.c
@@ -341,6 +341,8 @@ InitProcess(void)
SHMQueueElemInit(&(MyProc->links));
MyProc->waitStatus = STATUS_OK;
MyProc->lxid = InvalidLocalTransactionId;
+ MyProc->fpVXIDLock = false;
+ MyProc->fpLocalTransactionId = InvalidLocalTransactionId;
MyPgXact->xid = InvalidTransactionId;
MyPgXact->xmin = InvalidTransactionId;
MyProc->pid = MyProcPid;
@@ -507,6 +509,8 @@ InitAuxiliaryProcess(void)
SHMQueueElemInit(&(MyProc->links));
MyProc->waitStatus = STATUS_OK;
MyProc->lxid = InvalidLocalTransactionId;
+ MyProc->fpVXIDLock = false;
+ MyProc->fpLocalTransactionId = InvalidLocalTransactionId;
MyPgXact->xid = InvalidTransactionId;
MyPgXact->xmin = InvalidTransactionId;
MyProc->backendId = InvalidBackendId;