From af6e88a9cfefcb1549a61ed7642c9837599fd0a7 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Sun, 18 Mar 2001 20:18:59 +0000 Subject: Remove NEXTXID xlog record type to avoid three-way deadlock risk. NEXTXID isn't really necessary, per previous discussion in pghackers, but I mulishy insisted we should put it in anyway. Mea culpa. --- src/backend/access/transam/varsup.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'src/backend/access/transam/varsup.c') diff --git a/src/backend/access/transam/varsup.c b/src/backend/access/transam/varsup.c index e4271f5fa86..d6097b2567c 100644 --- a/src/backend/access/transam/varsup.c +++ b/src/backend/access/transam/varsup.c @@ -6,7 +6,7 @@ * Copyright (c) 2000, PostgreSQL Global Development Group * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/access/transam/varsup.c,v 1.36 2001/03/13 01:17:05 tgl Exp $ + * $Header: /cvsroot/pgsql/src/backend/access/transam/varsup.c,v 1.37 2001/03/18 20:18:59 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -44,17 +44,9 @@ GetNewTransactionId(TransactionId *xid) SpinAcquire(XidGenLockId); - /* If we run out of logged for use xids then we must log more */ - if (ShmemVariableCache->xidCount == 0) - { - XLogPutNextXid(ShmemVariableCache->nextXid + VAR_XID_PREFETCH); - ShmemVariableCache->xidCount = VAR_XID_PREFETCH; - } - *xid = ShmemVariableCache->nextXid; (ShmemVariableCache->nextXid)++; - (ShmemVariableCache->xidCount)--; SpinRelease(XidGenLockId); -- cgit v1.2.3