diff options
author | Vadim B. Mikheev <vadim4o@yahoo.com> | 1996-11-27 07:17:48 +0000 |
---|---|---|
committer | Vadim B. Mikheev <vadim4o@yahoo.com> | 1996-11-27 07:17:48 +0000 |
commit | 47312ec134558e662579cea3eca1b0ac8f401fe6 (patch) | |
tree | 06605867b52fbf0f7629af8915183a1f00715e27 /src | |
parent | 713b65e19c1cf58bbc5dd4dd8845ddf4a67aaa26 (diff) | |
download | postgresql-47312ec134558e662579cea3eca1b0ac8f401fe6.tar.gz postgresql-47312ec134558e662579cea3eca1b0ac8f401fe6.zip |
Setting MyProc->xid to InvalidTransactionId while creating
PROC structure (it's for new TransactionIdIsInProgress func).
Diffstat (limited to 'src')
-rw-r--r-- | src/backend/storage/lmgr/proc.c | 6 |
1 files 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 |