Skip to content

Commit a980e0b

Browse files
committed
Fix alignment issues with transaction log writing/decoding on sparc
1 parent fcdbed0 commit a980e0b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/include/access/xact.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ typedef struct xl_xact_xinfo
191191
* four so following records don't have to care about alignment. Commit
192192
* records can be large, so copying large portions isn't attractive.
193193
*/
194-
uint32 xinfo;
194+
uint64 xinfo;
195195
} xl_xact_xinfo;
196196

197197
typedef struct xl_xact_dbinfo
@@ -209,14 +209,14 @@ typedef struct xl_xact_subxacts
209209

210210
typedef struct xl_xact_relfilenodes
211211
{
212-
int nrels; /* number of subtransaction XIDs */
212+
int64 nrels; /* number of subtransaction XIDs */
213213
RelFileNode xnodes[FLEXIBLE_ARRAY_MEMBER];
214214
} xl_xact_relfilenodes;
215215
#define MinSizeOfXactRelfilenodes offsetof(xl_xact_relfilenodes, xnodes)
216216

217217
typedef struct xl_xact_invals
218218
{
219-
int nmsgs; /* number of shared inval msgs */
219+
int64 nmsgs; /* number of shared inval msgs */
220220
SharedInvalidationMessage msgs[FLEXIBLE_ARRAY_MEMBER];
221221
} xl_xact_invals;
222222
#define MinSizeOfXactInvals offsetof(xl_xact_invals, msgs)

0 commit comments

Comments
 (0)