From 47312ec134558e662579cea3eca1b0ac8f401fe6 Mon Sep 17 00:00:00 2001
From: "Vadim B. Mikheev" <vadim4o@yahoo.com>
Date: Wed, 27 Nov 1996 07:17:48 +0000
Subject: [PATCH] Setting MyProc->xid to InvalidTransactionId while creating
 PROC structure (it's for new TransactionIdIsInProgress func).

---
 src/backend/storage/lmgr/proc.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/backend/storage/lmgr/proc.c b/src/backend/storage/lmgr/proc.c
index a1cafcda1e6..cb1eda44d8a 100644
--- a/src/backend/storage/lmgr/proc.c
+++ b/src/backend/storage/lmgr/proc.c
@@ -7,7 +7,7 @@
  *
  *
  * IDENTIFICATION
- *    $Header: /cvsroot/pgsql/src/backend/storage/lmgr/proc.c,v 1.10 1996/11/24 04:07:05 bryanh Exp $
+ *    $Header: /cvsroot/pgsql/src/backend/storage/lmgr/proc.c,v 1.11 1996/11/27 07:17:48 vadim Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -46,13 +46,14 @@
  *      This is so that we can support more backends. (system-wide semaphore
  *      sets run out pretty fast.)                -ay 4/95
  *
- * $Header: /cvsroot/pgsql/src/backend/storage/lmgr/proc.c,v 1.10 1996/11/24 04:07:05 bryanh Exp $
+ * $Header: /cvsroot/pgsql/src/backend/storage/lmgr/proc.c,v 1.11 1996/11/27 07:17:48 vadim Exp $
  */
 #include <sys/time.h>
 #ifndef WIN32
 #include <unistd.h>
 #endif /* WIN32 */
 #include <string.h>
+#include <signal.h>
 #include <sys/types.h>
 #include <sys/ipc.h>
 #include <sys/sem.h>
@@ -251,6 +252,7 @@ InitProcess(IPCKey key)
     SpinRelease(ProcStructLock);
     
     MyProc->pid = 0;
+    MyProc->xid = InvalidTransactionId;
 #if 0
     MyProc->pid = MyPid;
 #endif
-- 
GitLab