8000 Typos in attempting to find parent in partcache during partstatus inv… · postgrespro/pg_pathman@e402512 · GitHub
[go: up one dir, main page]

Skip to content

Commit e402512

Browse files
committed
Typos in attempting to find parent in partcache during partstatus invalildation.
1 parent de0197d commit e402512

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/hooks.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -877,11 +877,11 @@ pathman_relcache_hook(Datum arg, Oid relid)
877877
/* Invalidate PartBoundInfo entry if needed */
878878
forget_bounds_of_rel(relid);
879879

880-
/* Invalidate PartParentInfo entry if needed */
881-
forget_parent_of_partition(relid);
882-
883880
/* Invalidate PartStatusInfo entry if needed */
884881
forget_status_of_relation(relid);
882+
883+
/* Invalidate PartParentInfo entry if needed */
884+
forget_parent_of_partition(relid);
885885
}
886886
}
887887

src/relation_info.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ forget_status_of_relation(Oid relid)
215215
{
216216
/* Find status cache entry for parent */
217217
psin = pathman_cache_search_relid(status_cache,
218-
relid, HASH_FIND,
218+
ppar->parent_relid, HASH_FIND,
219219
NULL);
220220
if (psin)
221221
invalidate_psin_entry(psin);

0 commit comments

Comments
 (0)
0