Setting MyProc->xid to InvalidTransactionId while creating

PROC structure (it's for new TransactionIdIsInProgress func).
This commit is contained in:
Vadim B. Mikheev 1996-11-27 07:17:48 +00:00
parent 713b65e19c
commit 47312ec134
1 changed files with 4 additions and 2 deletions

View File

@ -7,7 +7,7 @@
* *
* *
* IDENTIFICATION * 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 * This is so that we can support more backends. (system-wide semaphore
* sets run out pretty fast.) -ay 4/95 * 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> #include <sys/time.h>
#ifndef WIN32 #ifndef WIN32
#include <unistd.h> #include <unistd.h>
#endif /* WIN32 */ #endif /* WIN32 */
#include <string.h> #include <string.h>
#include <signal.h>
#include <sys/types.h> #include <sys/types.h>
#include <sys/ipc.h> #include <sys/ipc.h>
#include <sys/sem.h> #include <sys/sem.h>
@ -251,6 +252,7 @@ InitProcess(IPCKey key)
SpinRelease(ProcStructLock); SpinRelease(ProcStructLock);
MyProc->pid = 0; MyProc->pid = 0;
MyProc->xid = InvalidTransactionId;
#if 0 #if 0
MyProc->pid = MyPid; MyProc->pid = MyPid;
#endif #endif