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

Lines changed: 3 additions & 2 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy