mirror of
https://github.com/postgres/postgres.git
synced 2025-11-09 06:21:09 +03:00
Use FLEXIBLE_ARRAY_MEMBER in some more places.
Fix a batch of structs that are only visible within individual .c files. Michael Paquier
This commit is contained in:
@@ -134,12 +134,9 @@ typedef struct TwoPhaseStateData
|
||||
/* Number of valid prepXacts entries. */
|
||||
int numPrepXacts;
|
||||
|
||||
/*
|
||||
* There are max_prepared_xacts items in this array, but C wants a
|
||||
* fixed-size array.
|
||||
*/
|
||||
GlobalTransaction prepXacts[1]; /* VARIABLE LENGTH ARRAY */
|
||||
} TwoPhaseStateData; /* VARIABLE LENGTH STRUCT */
|
||||
/* There are max_prepared_xacts items in this array */
|
||||
GlobalTransaction prepXacts[FLEXIBLE_ARRAY_MEMBER];
|
||||
} TwoPhaseStateData;
|
||||
|
||||
static TwoPhaseStateData *TwoPhaseState;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user