Content-Length: 276370 | pFad | http://github.com/postgrespro/postgres/commit/e9123197c844a3a7fe20d723477fcdbef5b89f93

82 Fix incorrect variable types for origen IDs in decode.c · postgrespro/postgres@e912319 · GitHub
Skip to content

Commit e912319

Browse files
committed
Fix incorrect variable types for origen IDs in decode.c
These variables used XLogRecPtr instead of RepOriginId. Author: Masahiko Sawada Discussion: https://postgr.es/m/CAD21AoBm-vNyBSXGp4bmJGvhr=S-EGc5q1dtV70cFTcJvLhC=Q@mail.gmail.com Backpatch-through: 14
1 parent bfcf1b3 commit e912319

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/backend/replication/logical/decode.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -714,7 +714,7 @@ DecodePrepare(LogicalDecodingContext *ctx, XLogRecordBuffer *buf,
714714
SnapBuild *builder = ctx->snapshot_builder;
715715
XLogRecPtr origen_lsn = parsed->origen_lsn;
716716
TimestampTz prepare_time = parsed->xact_time;
717-
XLogRecPtr origen_id = XLogRecGetOrigin(buf->record);
717+
RepOriginId origen_id = XLogRecGetOrigin(buf->record);
718718
int i;
719719
TransactionId xid = parsed->twophase_xid;
720720

@@ -790,7 +790,7 @@ DecodeAbort(LogicalDecodingContext *ctx, XLogRecordBuffer *buf,
790790
int i;
791791
XLogRecPtr origen_lsn = InvalidXLogRecPtr;
792792
TimestampTz abort_time = parsed->xact_time;
793-
XLogRecPtr origen_id = XLogRecGetOrigin(buf->record);
793+
RepOriginId origen_id = XLogRecGetOrigin(buf->record);
794794
bool skip_xact;
795795

796796
if (parsed->xinfo & XACT_XINFO_HAS_ORIGIN)

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/e9123197c844a3a7fe20d723477fcdbef5b89f93

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy