Skip to content

Commit d7cce47

Browse files
committed
Silence clang checker in build_pathman_relation_info bounds cleanup.
1 parent ce72bc7 commit d7cce47

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Diff for: src/relation_info.c

+4-1
Original file line numberDiff line numberDiff line change
@@ -522,8 +522,11 @@ build_pathman_relation_info(Oid relid, Datum *values)
522522
*/
523523
if (prel->parttype == PT_HASH)
524524
child = prel->children[i];
525-
else if (prel->parttype == PT_RANGE)
525+
else
526+
{
527+
Assert(prel->parttype == PT_RANGE)
526528
child = prel->ranges[i].child_oid;
529+
}
527530

528531
forget_bounds_of_partition(child);
529532
}

0 commit comments

Comments
 (0)