postgres.git / summary / log / commit / refs

commit    f2e1730ee9bc1a8a3875a69a174cfb365b210821
Author:   Amit Kapila <akapila@postgresql.org>
Date:     Wed Dec 08 09:51:12 2021 +0000

    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


src/backend/replication/logical/decode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/replication/logical/decode.c b/src/backend/replication/logical/decode.c index daf2efb0d83..92dfafc6329 100644 --- a/src/backend/replication/logical/decode.c +++ b/src/backend/replication/logical/decode.c @@ -876,8 +876,8 @@ DecodeAbort(LogicalDecodingContext *ctx, XLogRecordBuffer *buf, if (two_phase && !skip_xact) { ReorderBufferFinishPrepared(ctx->reorder, xid, buf->origptr, buf->endptr, - abort_time, origin_id, origin_lsn, InvalidXLogRecPtr, + abort_time, origin_id, origin_lsn, parsed->twophase_gid, false); } else [parent: 64ab21f0e5de]