Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit e402512

Browse filesBrowse files
committed
Typos in attempting to find parent in partcache during partstatus invalildation.
1 parent de0197d commit e402512
Copy full SHA for e402512

File tree

2 files changed

+4
-4
lines changed
Filter options

2 files changed

+4
-4
lines changed

‎src/hooks.c

Copy file name to clipboardExpand all lines: src/hooks.c
+3-3Lines 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

Copy file name to clipboardExpand all lines: src/relation_info.c
+1-1Lines 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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.