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

Commitade89ba

Browse files
author
Amit Kapila
committed
Fix an oversight in ReorderBufferFinishPrepared.
We don't have anything to decode in a transaction if ReorderBufferTXNdoesn't exist by the time we decode the commit prepared. So don't create anew ReorderBufferTXN here. This is an oversight in commita271a1b.Reported-by: Markus WannerDiscussion:https://postgr.es/m/dbec82e2-dbd7-95a2-c6b6-e488cbbdf853@bluegap.ch
1 parentbc617a7 commitade89ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2679,7 +2679,7 @@ ReorderBufferFinishPrepared(ReorderBuffer *rb, TransactionId xid,
26792679
XLogRecPtrprepare_end_lsn;
26802680
TimestampTzprepare_time;
26812681

2682-
txn=ReorderBufferTXNByXid(rb,xid,true,NULL,commit_lsn, false);
2682+
txn=ReorderBufferTXNByXid(rb,xid,false,NULL,commit_lsn, false);
26832683

26842684
/* unknown transaction, nothing to do */
26852685
if (txn==NULL)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp