aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorVadim B. Mikheev <vadim4o@yahoo.com>1996-11-27 07:17:48 +0000
committerVadim B. Mikheev <vadim4o@yahoo.com>1996-11-27 07:17:48 +0000
commit47312ec134558e662579cea3eca1b0ac8f401fe6 (patch)
tree06605867b52fbf0f7629af8915183a1f00715e27 /src
parent713b65e19c1cf58bbc5dd4dd8845ddf4a67aaa26 (diff)
downloadpostgresql-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.c6
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