Skip to content

Commit db4ee78

Browse files
committed
Fixed parsion of map- filenames. Now LOGICAL_REWRITE_FORMAT contain 8 fields, not 6
1 parent e988f79 commit db4ee78

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/backend/access/heap/rewriteheap.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1259,7 +1259,7 @@ CheckPointLogicalRewriteHeap(void)
12591259
if (sscanf(mapping_de->d_name, LOGICAL_REWRITE_FORMAT,
12601260
&dboid, &relid, &lsn_hi, &lsn_lo,
12611261
&rewrite_xid_hi, &rewrite_xid_lo,
1262-
&create_xid_hi, &create_xid_lo) != 6)
1262+
&create_xid_hi, &create_xid_lo) != 8)
12631263
elog(ERROR, "could not parse filename \"%s\"", mapping_de->d_name);
12641264

12651265
lsn = ((uint64) lsn_hi) << 32 | lsn_lo;

src/backend/replication/logical/reorderbuffer.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3215,7 +3215,7 @@ UpdateLogicalMappings(HTAB *tuplecid_data, Oid relid, Snapshot snapshot)
32153215
if (sscanf(mapping_de->d_name, LOGICAL_REWRITE_FORMAT,
32163216
&f_dboid, &f_relid, &f_lsn_hi, &f_lsn_lo,
32173217
&f_mapped_xid_hi, &f_mapped_xid_lo,
3218-
&f_create_xid_hi, &f_create_xid_lo) != 6)
3218+
&f_create_xid_hi, &f_create_xid_lo) != 8)
32193219
elog(ERROR, "could not parse filename \"%s\"", mapping_de->d_name);
32203220

32213221
f_lsn = ((uint64) f_lsn_hi) << 32 | f_lsn_lo;

0 commit comments

Comments
 (0)