]> granicus.if.org Git - postgresql/commitdiff
Setting MyProc->xid to InvalidTransactionId while creating
authorVadim B. Mikheev <vadim4o@yahoo.com>
Wed, 27 Nov 1996 07:17:48 +0000 (07:17 +0000)
committerVadim B. Mikheev <vadim4o@yahoo.com>
Wed, 27 Nov 1996 07:17:48 +0000 (07:17 +0000)
PROC structure (it's for new TransactionIdIsInProgress func).

src/backend/storage/lmgr/proc.c

index a1cafcda1e64462d8af103d1ab87d59c120090f5..cb1eda44d8a123a040764beab72b25e851e364bb 100644 (file)
@@ -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 $
  *
  *-------------------------------------------------------------------------
  */
  *      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