mirror of
https://github.com/postgres/postgres.git
synced 2025-04-29 13:56:47 +03:00
Call ReorderBufferProcessXid from sequence_decode
Commit 0da92dc530c 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
This commit is contained in:
parent
25751f54b8
commit
d5ed9da41d
@ -1321,6 +1321,8 @@ sequence_decode(LogicalDecodingContext *ctx, XLogRecordBuffer *buf)
|
|||||||
if (info != XLOG_SEQ_LOG)
|
if (info != XLOG_SEQ_LOG)
|
||||||
elog(ERROR, "unexpected RM_SEQ_ID record type: %u", info);
|
elog(ERROR, "unexpected RM_SEQ_ID record type: %u", info);
|
||||||
|
|
||||||
|
ReorderBufferProcessXid(ctx->reorder, XLogRecGetXid(r), buf->origptr);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* If we don't have snapshot or we are just fast-forwarding, there is no
|
* If we don't have snapshot or we are just fast-forwarding, there is no
|
||||||
* point in decoding messages.
|
* point in decoding messages.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user