From: Simon Riggs Date: Thu, 29 Nov 2012 22:15:52 +0000 (+0000) Subject: Correctly init fast path fields on PGPROC X-Git-Tag: REL9_3_BETA1~682 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d3fe59939c142f2adad2a9cca03e0e0d27c162a4;p=postgresql Correctly init fast path fields on PGPROC --- diff --git a/src/backend/storage/lmgr/proc.c b/src/backend/storage/lmgr/proc.c index 5ae1506038..429525b6ea 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;