Skip to content

Commit 63325d2

Browse files
author
Alexander Korotkov
committed
Fix order in xact wal messages.
1 parent 7225a08 commit 63325d2

File tree

1 file changed

+6
-6
lines changed
  • src/backend/access/transam

1 file changed

+6
-6
lines changed

src/backend/access/transam/xact.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5210,6 +5210,9 @@ XactLogCommitRecord(TimestampTz commit_time,
52105210
nsubxacts * sizeof(TransactionId));
52115211
}
52125212

5213+
if (xl_xinfo.xinfo & XACT_XINFO_HAS_TWOPHASE)
5214+
XLogRegisterData((char *) (&xl_twophase), sizeof(xl_xact_twophase));
5215+
52135216
if (xl_xinfo.xinfo & XACT_XINFO_HAS_RELFILENODES)
52145217
{
52155218
XLogRegisterData((char *) (&xl_relfilenodes),
@@ -5225,9 +5228,6 @@ XactLogCommitRecord(TimestampTz commit_time,
52255228
nmsgs * sizeof(SharedInvalidationMessage));
52265229
}
52275230

5228-
if (xl_xinfo.xinfo & XACT_XINFO_HAS_TWOPHASE)
5229-
XLogRegisterData((char *) (&xl_twophase), sizeof(xl_xact_twophase));
5230-
52315231
if (xl_xinfo.xinfo & XACT_XINFO_HAS_ORIGIN)
52325232
XLogRegisterData((char *) (&xl_origin), sizeof(xl_xact_origin));
52335233

@@ -5310,6 +5310,9 @@ XactLogAbortRecord(TimestampTz abort_time,
53105310
nsubxacts * sizeof(TransactionId));
53115311
}
53125312

5313+
if (xl_xinfo.xinfo & XACT_XINFO_HAS_TWOPHASE)
5314+
XLogRegisterData((char *) (&xl_twophase), sizeof(xl_xact_twophase));
5315+
53135316
if (xl_xinfo.xinfo & XACT_XINFO_HAS_RELFILENODES)
53145317
{
53155318
XLogRegisterData((char *) (&xl_relfilenodes),
@@ -5318,9 +5321,6 @@ XactLogAbortRecord(TimestampTz abort_time,
53185321
nrels * sizeof(RelFileNode));
53195322
}
53205323

5321-
if (xl_xinfo.xinfo & XACT_XINFO_HAS_TWOPHASE)
5322-
XLogRegisterData((char *) (&xl_twophase), sizeof(xl_xact_twophase));
5323-
53245324
return XLogInsert(RM_XACT_ID, info);
53255325
}
53265326

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