From: Vadim B. Mikheev Date: Wed, 27 Nov 1996 07:17:48 +0000 (+0000) Subject: Setting MyProc->xid to InvalidTransactionId while creating X-Git-Tag: REL2_0~49 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=47312ec134558e662579cea3eca1b0ac8f401fe6;p=thirdparty%2Fpostgresql.git Setting MyProc->xid to InvalidTransactionId while creating PROC structure (it's for new TransactionIdIsInProgress func). --- 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 #ifndef WIN32 #include #endif /* WIN32 */ #include +#include #include #include #include @@ -251,6 +252,7 @@ InitProcess(IPCKey key) SpinRelease(ProcStructLock); MyProc->pid = 0; + MyProc->xid = InvalidTransactionId; #if 0 MyProc->pid = MyPid; #endif