Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 4789cf4

Browse files
committed
Assert for could not map filenode
1 parent 6e98228 commit 4789cf4

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/backend/replication/logical/reorderbuffer.c

+3-2
Original file line numberDiff line numberDiff line change
@@ -1459,11 +1459,12 @@ ReorderBufferCommit(ReorderBuffer *rb, TransactionId xid,
14591459
change->data.tp.newtuple == NULL &&
14601460
change->data.tp.oldtuple == NULL)
14611461
goto change_done;
1462-
else if (reloid == InvalidOid)
1462+
else if (reloid == InvalidOid) {
1463+
Assert(reloid != InvalidOid);
14631464
elog(ERROR, "could not map filenode \"%s\" to relation OID",
14641465
relpathperm(change->data.tp.relnode,
14651466
MAIN_FORKNUM));
1466-
1467+
}
14671468
relation = RelationIdGetRelation(reloid);
14681469

14691470
if (relation == NULL)

0 commit comments

Comments
 (0)