Skip to content

Commit d5ed9da

Browse files
committed
Call ReorderBufferProcessXid from sequence_decode
Commit 0da92dc added sequence_decode() implementing logical decoding of sequences, but it failed to call ReorderBufferProcessXid() as it should. So add the missing call. Reported-by: Amit Kapila Discussion: https://postgr.es/m/CAA4eK1KGn6cQqJEsubOOENwQOANsExiV2sKL52r4U10J8NJEMQ%40mail.gmail.com
1 parent 25751f5 commit d5ed9da

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/backend/replication/logical/decode.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1321,6 +1321,8 @@ sequence_decode(LogicalDecodingContext *ctx, XLogRecordBuffer *buf)
13211321
if (info != XLOG_SEQ_LOG)
13221322
elog(ERROR, "unexpected RM_SEQ_ID record type: %u", info);
13231323

1324+
ReorderBufferProcessXid(ctx->reorder, XLogRecGetXid(r), buf->origptr);
1325+
13241326
/*
13251327
* If we don't have snapshot or we are just fast-forwarding, there is no
13261328
* point in decoding messages.

0 commit comments

Comments
 (0)