Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Commit0a1e171

Browse files
committed
comments for try_perform_parent_refresh()
1 parentde05252 commit0a1e171

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

‎src/relation_info.c

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,11 @@ static booldelayed_shutdown = false; /* pathman was dropped */
4949
} while (0)
5050

5151

52+
staticbooltry_perform_parent_refresh(Oidparent);
5253
staticOidtry_syscache_parent_search(Oidpartition,PartParentSearch*status);
5354
staticOidget_parent_of_partition_internal(Oidpartition,
5455
PartParentSearch*status,
5556
HASHACTIONaction);
56-
staticboolperform_parent_refresh(Oidparent);
5757

5858

5959
/*
@@ -332,7 +332,7 @@ finish_delayed_invalidation(void)
332332
Oidvague_rel=lfirst_oid(lc);
333333

334334
/* It might be a partitioned table or a partition */
335-
if (!perform_parent_refresh(vague_rel))
335+
if (!try_perform_parent_refresh(vague_rel))
336336
{
337337
PartParentSearchsearch;
338338
Oidparent;
@@ -343,7 +343,7 @@ finish_delayed_invalidation(void)
343343
{
344344
/* It's still parent */
345345
casePPS_ENTRY_PART_PARENT:
346-
perform_parent_refresh(parent);
346+
try_perform_parent_refresh(parent);
347347
break;
348348

349349
/* It *might have been* parent before (not in PATHMAN_CONFIG) */
@@ -527,8 +527,13 @@ try_syscache_parent_search(Oid partition, PartParentSearch *status)
527527
}
528528
}
529529

530+
/*
531+
* Try to refresh cache entry for relation 'parent'.
532+
*
533+
* Return true on success.
534+
*/
530535
staticbool
531-
perform_parent_refresh(Oidparent)
536+
try_perform_parent_refresh(Oidparent)
532537
{
533538
Datumvalues[Natts_pathman_config];
534539
boolisnull[Natts_pathman_config];

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp