提交 47312ec1 编写于 作者: V Vadim B. Mikheev

Setting MyProc->xid to InvalidTransactionId while creating

PROC structure (it's for new TransactionIdIsInProgress func).
上级 713b65e1
...@@ -7,7 +7,7 @@ ...@@ -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 @@ ...@@ -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) ...@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册