File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 15
15
#define TWOPHASE_H
16
16
17
17
#include "access/xlogdefs.h"
18
+ #include "access/xact.h"
18
19
#include "datatype/timestamp.h"
19
20
#include "storage/lock.h"
20
21
21
- /*
22
- * Maximum size of Global Transaction ID.
23
- */
24
- #define GIDSIZE 200
25
-
26
22
/*
27
23
* GlobalTransactionData is defined in twophase.c; other places have no
28
24
* business knowing the internal definition.
Original file line number Diff line number Diff line change 21
21
#include "storage/sinval.h"
22
22
#include "utils/datetime.h"
23
23
24
+ /*
25
+ * Maximum size of Global Transaction ID.
26
+ */
27
+ #define GIDSIZE 200
24
28
25
29
/*
26
30
* Xact isolation levels
@@ -224,7 +228,7 @@ typedef struct xl_xact_twophase
224
228
* See details in XactLogCommitRecord().
225
229
*/
226
230
uint8 gidlen ;
227
- char gid [200 ];
231
+ char gid [GIDSIZE ];
228
232
} xl_xact_twophase ;
229
233
#define MinSizeOfXactTwophase offsetof(xl_xact_twophase, gid)
230
234
@@ -285,7 +289,7 @@ typedef struct xl_xact_parsed_commit
285
289
SharedInvalidationMessage * msgs ;
286
290
287
291
TransactionId twophase_xid ; /* only for 2PC */
288
- char twophase_gid [200 ]; // GIDSIZE
292
+ char twophase_gid [GIDSIZE ]; // GIDSIZE
289
293
290
294
XLogRecPtr origin_lsn ;
291
295
TimestampTz origin_timestamp ;
@@ -303,7 +307,7 @@ typedef struct xl_xact_parsed_abort
303
307
RelFileNode * xnodes ;
304
308
305
309
TransactionId twophase_xid ; /* only for 2PC */
306
- char twophase_gid [200 ]; // GIDSIZE
310
+ char twophase_gid [GIDSIZE ]; // GIDSIZE
307
311
} xl_xact_parsed_abort ;
308
312
309
313
You can’t perform that action at this time.
0 commit comments