Skip to content

Commit f8617e2

Browse files
committed
fix2
1 parent b4e31d3 commit f8617e2

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/backend/replication/logical/decode.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -545,6 +545,7 @@ DecodePrepare(LogicalDecodingContext *ctx, XLogRecordBuffer *buf,
545545
XLogRecPtr origin_id = XLogRecGetOrigin(buf->record);
546546
int i;
547547
TransactionId xid = parsed->twophase_xid;
548+
strcpy(ctx->reorder->gid, parsed->twophase_gid);
548549

549550
/*
550551
* Process invalidation messages, even if we're not interested in the
@@ -561,8 +562,6 @@ DecodePrepare(LogicalDecodingContext *ctx, XLogRecordBuffer *buf,
561562
SnapBuildCommitTxn(ctx->snapshot_builder, buf->origptr, xid,
562563
parsed->nsubxacts, parsed->subxacts);
563564

564-
565-
566565
if (SnapBuildXactNeedsSkip(ctx->snapshot_builder, buf->origptr) ||
567566
(parsed->dbId != InvalidOid && parsed->dbId != ctx->slot->data.database) ||
568567
FilterByOrigin(ctx, origin_id))

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