From 3dfaea4727fb3d98e28f4cb9d707c33e2bdbfa7d Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Thu, 31 May 2012 11:12:26 -0400 Subject: Revert back-branch changes in behavior of age(xid). Per discussion, it does not seem like a good idea to change the behavior of age(xid) in a minor release, even though the old definition causes the function to fail on hot standby slaves. Therefore, revert commit 5829387381d2e4edf84652bb5a712f6185860670 and follow-on commits in the back branches only. --- src/backend/access/transam/xact.c | 24 ------------------------ 1 file changed, 24 deletions(-) (limited to 'src/backend/access/transam/xact.c') diff --git a/src/backend/access/transam/xact.c b/src/backend/access/transam/xact.c index 184fe28f5c5..a38fed18fb6 100644 --- a/src/backend/access/transam/xact.c +++ b/src/backend/access/transam/xact.c @@ -392,30 +392,6 @@ GetCurrentTransactionIdIfAny(void) return CurrentTransactionState->transactionId; } -/* - * GetStableLatestTransactionId - * - * Get the XID once and then return same value for rest of transaction. - * Acts as a useful reference point for maintenance tasks. - */ -TransactionId -GetStableLatestTransactionId(void) -{ - static LocalTransactionId lxid = InvalidLocalTransactionId; - static TransactionId stablexid = InvalidTransactionId; - - if (lxid != MyProc->lxid) - { - lxid = MyProc->lxid; - stablexid = GetTopTransactionIdIfAny(); - if (!TransactionIdIsValid(stablexid)) - stablexid = ReadNewTransactionId(); - } - - Assert(TransactionIdIsValid(stablexid)); - - return stablexid; -} /* * AssignTransactionId -- cgit v1.2.3