Re: Very small patch for decode.c - Mailing list pgsql-hackers

From Craig Ringer
Subject Re: Very small patch for decode.c
Date
Msg-id CAMsr+YE+fMGUWfva1Mb2p2jK+b4vJy4gp323q_j7KkSMU+S=Lw@mail.gmail.com
Whole thread Raw
In response to Very small patch for decode.c  (Konstantin Knizhnik <k.knizhnik@postgrespro.ru>)
List pgsql-hackers
On 31 March 2016 at 03:34, Konstantin Knizhnik <k.knizhnik@postgrespro.ru> wrote:
diff --git a/src/backend/replication/logical/decode.c b/src/backend/replication/logical/decode.c
index 2380ea2..a992662 100644
--- a/src/backend/replication/logical/decode.c
+++ b/src/backend/replication/logical/decode.c
@@ -488,7 +488,7 @@ DecodeCommit(LogicalDecodingContext *ctx, XLogRecordBuffer *buf,
 {
        XLogRecPtr      origin_lsn = InvalidXLogRecPtr;
        TimestampTz     commit_time = parsed->xact_time;
-       XLogRecPtr      origin_id = XLogRecGetOrigin(buf->record);
+       RepOriginId     origin_id = XLogRecGetOrigin(buf->record);
        int                     i;

Even though it's trivial, created as https://commitfest.postgresql.org/10/594/ so we don't lose it. 

--
 Craig Ringer                   http://www.2ndQuadrant.com/
 PostgreSQL Development, 24x7 Support, Training & Services

pgsql-hackers by date:

Previous
From: Craig Ringer
Date:
Subject: Re: Timeline following for logical slots
Next
From: Craig Ringer
Date:
Subject: Re: pg_xlogdump fails to handle WAL file with multi-page XLP_FIRST_IS_CONTRECORD data