diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2005-02-20 21:46:50 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2005-02-20 21:46:50 +0000 |
commit | 4aefe75553e6ec82b7308f961edd480d8001ec12 (patch) | |
tree | 77b6e32cbea54883f2d8ce3bfd189685c54d784c /src/backend/access/transam/varsup.c | |
parent | 57e3b0c9db0778ef136b66917b82a57d61265b9d (diff) | |
download | postgresql-4aefe75553e6ec82b7308f961edd480d8001ec12.tar.gz postgresql-4aefe75553e6ec82b7308f961edd480d8001ec12.zip |
Remove some no-longer-needed kluges for bootstrapping, in particular
the AMI_OVERRIDE flag. The fact that TransactionLogFetch treats
BootstrapTransactionId as always committed is sufficient to make
bootstrap work, and getting rid of extra tests in heavily used code
paths seems like a win. The files produced by initdb are demonstrably
the same after this change.
Diffstat (limited to 'src/backend/access/transam/varsup.c')
-rw-r--r-- | src/backend/access/transam/varsup.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/access/transam/varsup.c b/src/backend/access/transam/varsup.c index eb7aeba3818..8caa7638335 100644 --- a/src/backend/access/transam/varsup.c +++ b/src/backend/access/transam/varsup.c @@ -6,7 +6,7 @@ * Copyright (c) 2000-2005, PostgreSQL Global Development Group * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/access/transam/varsup.c,v 1.61 2005/02/20 02:21:28 tgl Exp $ + * $PostgreSQL: pgsql/src/backend/access/transam/varsup.c,v 1.62 2005/02/20 21:46:48 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -41,7 +41,7 @@ GetNewTransactionId(bool isSubXact) * During bootstrap initialization, we return the special bootstrap * transaction id. */ - if (AMI_OVERRIDE) + if (IsBootstrapProcessingMode()) return BootstrapTransactionId; LWLockAcquire(XidGenLock, LW_EXCLUSIVE); |