|
8 | 8 | *
|
9 | 9 | *
|
10 | 10 | * IDENTIFICATION
|
11 |
| - * $PostgreSQL: pgsql/src/backend/access/transam/transam.c,v 1.63 2004/12/31 21:59:29 pgsql Exp $ |
| 11 | + * $PostgreSQL: pgsql/src/backend/access/transam/transam.c,v 1.64 2005/02/20 21:46:48 tgl Exp $ |
12 | 12 | *
|
13 | 13 | * NOTES
|
14 | 14 | * This file contains the high level access-method interface to the
|
|
25 | 25 | #include "utils/tqual.h"
|
26 | 26 |
|
27 | 27 |
|
28 |
| -/* ---------------- |
29 |
| - * Flag indicating that we are bootstrapping. |
30 |
| - * |
31 |
| - * Transaction ID generation is disabled during bootstrap; we just use |
32 |
| - * BootstrapTransactionId. Also, the transaction ID status-check routines |
33 |
| - * are short-circuited; they claim that BootstrapTransactionId has already |
34 |
| - * committed, allowing tuples already inserted to be seen immediately. |
35 |
| - * ---------------- |
36 |
| - */ |
37 |
| -bool AMI_OVERRIDE = false; |
38 |
| - |
39 |
| - |
40 | 28 | static XidStatus TransactionLogFetch(TransactionId transactionId);
|
41 | 29 | static void TransactionLogUpdate(TransactionId transactionId,
|
42 | 30 | XidStatus status);
|
@@ -134,18 +122,6 @@ TransactionLogMultiUpdate(int nxids, TransactionId *xids, XidStatus status)
|
134 | 122 | TransactionIdSetStatus(xids[i], status);
|
135 | 123 | }
|
136 | 124 |
|
137 |
| -/* -------------------------------- |
138 |
| - * AmiTransactionOverride |
139 |
| - * |
140 |
| - * This function is used to manipulate the bootstrap flag. |
141 |
| - * -------------------------------- |
142 |
| - */ |
143 |
| -void |
144 |
| -AmiTransactionOverride(bool flag) |
145 |
| -{ |
146 |
| - AMI_OVERRIDE = flag; |
147 |
| -} |
148 |
| - |
149 | 125 | /* ----------------------------------------------------------------
|
150 | 126 | * Interface functions
|
151 | 127 | *
|
@@ -184,12 +160,6 @@ TransactionIdDidCommit(TransactionId transactionId)
|
184 | 160 | {
|
185 | 161 | XidStatus xidstatus;
|
186 | 162 |
|
187 |
| - if (AMI_OVERRIDE) |
188 |
| - { |
189 |
| - Assert(transactionId == BootstrapTransactionId); |
190 |
| - return true; |
191 |
| - } |
192 |
| - |
193 | 163 | xidstatus = TransactionLogFetch(transactionId);
|
194 | 164 |
|
195 | 165 | /*
|
@@ -233,12 +203,6 @@ TransactionIdDidAbort(TransactionId transactionId)
|
233 | 203 | {
|
234 | 204 | XidStatus xidstatus;
|
235 | 205 |
|
236 |
| - if (AMI_OVERRIDE) |
237 |
| - { |
238 |
| - Assert(transactionId == BootstrapTransactionId); |
239 |
| - return false; |
240 |
| - } |
241 |
| - |
242 | 206 | xidstatus = TransactionLogFetch(transactionId);
|
243 | 207 |
|
244 | 208 | /*
|
|
0 commit comments