Skip to content

Commit f2e1730

Browse files
author
Amit Kapila
committed
Fix origin timestamp during decoding of ROLLBACK PREPARED operation.
This happens because we were passing incorrect arguments to ReorderBufferFinishPrepared(). Author: Masahiko Sawada Reviewed-by: Vignesh C Backpatch-through: 14 Discussion: https://postgr.es/m/CAD21AoBqhUqgDZUhUVnnwKRubPDNJ6m6fJDPgok3E5cWJLL+pA@mail.gmail.com
1 parent 64ab21f commit f2e1730

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
@@ -876,8 +876,8 @@ DecodeAbort(LogicalDecodingContext *ctx, XLogRecordBuffer *buf,
876876
if (two_phase && !skip_xact)
877877
{
878878
ReorderBufferFinishPrepared(ctx->reorder, xid, buf->origptr, buf->endptr,
879-
abort_time, origin_id, origin_lsn,
880879
InvalidXLogRecPtr,
880+
abort_time, origin_id, origin_lsn,
881881
parsed->twophase_gid, false);
882882
}
883883
else

0 commit comments

Comments
 (0)