Skip to content

Commit d5fe0f3

Browse files
committed
cleanups
1 parent 5b15778 commit d5fe0f3

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

src/backend/access/rmgrdesc/xactdesc.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ ParseCommitRecord(uint8 info, xl_xact_commit *xlrec, xl_xact_parsed_commit *pars
100100
xl_xact_twophase *xl_twophase = (xl_xact_twophase *) data;
101101

102102
parsed->twophase_xid = xl_twophase->xid;
103-
data += MinSizeOfXactTwophase;
103+
data += sizeof(xl_xact_twophase);
104104

105105
if (parsed->xinfo & XACT_XINFO_HAS_GID)
106106
{
@@ -181,7 +181,7 @@ ParseAbortRecord(uint8 info, xl_xact_abort *xlrec, xl_xact_parsed_abort *parsed)
181181
xl_xact_twophase *xl_twophase = (xl_xact_twophase *) data;
182182

183183
parsed->twophase_xid = xl_twophase->xid;
184-
data += MinSizeOfXactTwophase;
184+
data += sizeof(xl_xact_twophase);
185185

186186
if (parsed->xinfo & XACT_XINFO_HAS_GID)
187187
{

src/backend/access/transam/xact.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5239,7 +5239,7 @@ XactLogCommitRecord(TimestampTz commit_time,
52395239

52405240
if (xl_xinfo.xinfo & XACT_XINFO_HAS_TWOPHASE)
52415241
{
5242-
XLogRegisterData((char *) (&xl_twophase), MinSizeOfXactTwophase);
5242+
XLogRegisterData((char *) (&xl_twophase), sizeof(xl_xact_twophase));
52435243

52445244
if (xl_xinfo.xinfo & XACT_XINFO_HAS_GID)
52455245
XLogRegisterData((char *) twophase_gid, gidlen);
@@ -5367,7 +5367,7 @@ XactLogAbortRecord(TimestampTz abort_time,
53675367

53685368
if (xl_xinfo.xinfo & XACT_XINFO_HAS_TWOPHASE)
53695369
{
5370-
XLogRegisterData((char *) (&xl_twophase), MinSizeOfXactTwophase);
5370+
XLogRegisterData((char *) (&xl_twophase), sizeof(xl_xact_twophase));
53715371

53725372
if (xl_xinfo.xinfo & XACT_XINFO_HAS_GID)
53735373
XLogRegisterData((char *) twophase_gid, gidlen);

src/include/access/xact.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -229,9 +229,7 @@ typedef struct xl_xact_invals
229229
typedef struct xl_xact_twophase
230230
{
231231
TransactionId xid;
232-
char gid[GIDSIZE];
233232
} xl_xact_twophase;
234-
#define MinSizeOfXactTwophase offsetof(xl_xact_twophase, gid)
235233

236234
typedef struct xl_xact_origin
237235
{

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy