Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 1050106

Browse files
committed
fix 2pc decoding: match snapbuilder logic for DecodePrepare and DecodeCommit
1 parent 21b8c6b commit 1050106

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/backend/replication/logical/decode.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -673,6 +673,9 @@ DecodePrepare(LogicalDecodingContext *ctx, XLogRecordBuffer *buf,
673673
ReorderBufferXidSetCatalogChanges(ctx->reorder, xid, buf->origptr);
674674
}
675675

676+
SnapBuildCommitTxn(ctx->snapshot_builder, buf->origptr, xid,
677+
parsed->nsubxacts, parsed->subxacts);
678+
676679
if (SnapBuildXactNeedsSkip(ctx->snapshot_builder, buf->origptr) ||
677680
(parsed->dbId != InvalidOid && parsed->dbId != ctx->slot->data.database) ||
678681
FilterByOrigin(ctx, origin_id))

0 commit comments

Comments
 (0)