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
pull/90/head
Amit Kapila 4 years ago
parent 64ab21f0e5
commit f2e1730ee9
  1. 2
      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

Loading…
Cancel
Save