Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit03e2b10

Browse files
committed
Fix thinko in logical decoding of commit-prepared records.
The decoding of prepared transaction commits accidentally used the XID ofthe transaction performing the COMMIT PREPARED, not the XID of the preparedtransaction. Beforebb38fb0 that lead to those transactions not beingdecoded, afterwards to a assertion failure.
1 parente7873b7 commit03e2b10

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/backend/replication/logical/decode.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ DecodeXactOp(LogicalDecodingContext *ctx, XLogRecordBuffer *buf)
225225
subxacts= (TransactionId*)&(xlrec->xnodes[xlrec->nrels]);
226226
invals= (SharedInvalidationMessage*)&(subxacts[xlrec->nsubxacts]);
227227

228-
DecodeCommit(ctx,buf,r->xl_xid,xlrec->dbId,
228+
DecodeCommit(ctx,buf,prec->xid,xlrec->dbId,
229229
xlrec->xact_time,
230230
xlrec->nsubxacts,subxacts,
231231
xlrec->nmsgs,invals);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp