summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSimon Riggs <simon@2ndQuadrant.com>2012-11-29 22:12:44 +0000
committerSimon Riggs <simon@2ndQuadrant.com>2012-11-29 22:12:44 +0000
commitfdac4e2ba2ae75080d9e8c6e34934c9d32fe26ee (patch)
treee905ed0c31501effc71c5cb850815ef25c58c653 /src
parent44fe8ae9f97cc78f8641c4bffdd8a3e8b55b4690 (diff)
Correctly init fast path fields on PGPROC
Diffstat (limited to 'src')
-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 1dda2f81c30..3bfdd237a29 100644
--- a/src/backend/storage/lmgr/proc.c
+++ b/src/backend/storage/lmgr/proc.c
@@ -353,6 +353,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;
@@ -520,6 +522,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;