From be8300b18f26363c0b18c62fa884a6a62e26405e Mon Sep 17 00:00:00 2001 From: "Vadim B. Mikheev" Date: Mon, 27 Jul 1998 19:38:40 +0000 Subject: Use Snapshot in heap access methods. --- src/backend/storage/lmgr/proc.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src/backend/storage/lmgr/proc.c') diff --git a/src/backend/storage/lmgr/proc.c b/src/backend/storage/lmgr/proc.c index d4e14fb9c4..fb052582e7 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.39 1998/06/30 02:33:32 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/storage/lmgr/proc.c,v 1.40 1998/07/27 19:38:15 vadim Exp $ * *------------------------------------------------------------------------- */ @@ -46,7 +46,7 @@ * 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.39 1998/06/30 02:33:32 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/storage/lmgr/proc.c,v 1.40 1998/07/27 19:38:15 vadim Exp $ */ #include #include @@ -252,6 +252,9 @@ InitProcess(IPCKey key) MyProc->pid = MyProcPid; #endif MyProc->xid = InvalidTransactionId; +#ifdef LowLevelLocking + MyProc->xmin = InvalidTransactionId; +#endif /* ---------------- * Start keeping spin lock stats from here on. Any botch before @@ -479,11 +482,13 @@ ProcSleep(PROC_QUEUE *waitQueue, MyProc->token = token; MyProc->waitLock = lock; +#ifndef LowLevelLocking /* ------------------- * currently, we only need this for the ProcWakeup routines * ------------------- */ TransactionIdStore((TransactionId) GetCurrentTransactionId(), &MyProc->xid); +#endif /* ------------------- * assume that these two operations are atomic (because -- cgit v1.2.1