mirror of
https://github.com/postgres/postgres.git
synced 2025-07-30 11:03:19 +03:00
Fix nbtree's failure to clear BTScans list during xact abort.
Also, move responsibility for calling vc_abort into main xact.c list of things-to-call-at-abort. What in the world was it doing down inside of TransactionIdAbort()?
This commit is contained in:
@ -7,7 +7,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/access/transam/transam.c,v 1.30 1999/07/15 23:03:02 momjian Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/access/transam/transam.c,v 1.31 1999/08/08 20:12:52 tgl Exp $
|
||||
*
|
||||
* NOTES
|
||||
* This file contains the high level access-method interface to the
|
||||
@ -20,7 +20,6 @@
|
||||
|
||||
#include "access/heapam.h"
|
||||
#include "catalog/catname.h"
|
||||
#include "commands/vacuum.h"
|
||||
|
||||
static int RecoveryCheckingEnabled(void);
|
||||
static void TransRecover(Relation logRelation);
|
||||
@ -83,12 +82,6 @@ int RecoveryCheckingEnableState = 0;
|
||||
*/
|
||||
extern int OidGenLockId;
|
||||
|
||||
/* ----------------
|
||||
* globals that must be reset at abort
|
||||
* ----------------
|
||||
*/
|
||||
extern bool BuildingBtree;
|
||||
|
||||
|
||||
/* ----------------
|
||||
* recovery checking accessors
|
||||
@ -568,11 +561,6 @@ TransactionIdCommit(TransactionId transactionId)
|
||||
void
|
||||
TransactionIdAbort(TransactionId transactionId)
|
||||
{
|
||||
BuildingBtree = false;
|
||||
|
||||
if (VacuumRunning)
|
||||
vc_abort();
|
||||
|
||||
if (AMI_OVERRIDE)
|
||||
return;
|
||||
|
||||
|
Reference in New Issue
Block a user