Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Fix origin timestamp during decoding of ROLLBACK PREPARED operation.
authorAmit Kapila <akapila@postgresql.org>
Wed, 8 Dec 2021 09:51:12 +0000 (15:21 +0530)
committerAmit Kapila <akapila@postgresql.org>
Wed, 8 Dec 2021 09:51:12 +0000 (15:21 +0530)
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

index daf2efb0d83bb38f69f177c1e2b1e5e516f921dc..92dfafc63298b5e98dce8b9dff0965cfb81a41c6 100644 (file)
@@ -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