Skip to content

Commit 0a1e171

Browse files
committed
comments for try_perform_parent_refresh()
1 parent de05252 commit 0a1e171

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 bool delayed_shutdown = false; /* pathman was dropped */
4949
} while (0)
5050

5151

52+
static bool try_perform_parent_refresh(Oid parent);
5253
static Oid try_syscache_parent_search(Oid partition, PartParentSearch *status);
5354
static Oid get_parent_of_partition_internal(Oid partition,
5455
PartParentSearch *status,
5556
HASHACTION action);
56-
static bool perform_parent_refresh(Oid parent);
5757

5858

5959
/*
@@ -332,7 +332,7 @@ finish_delayed_invalidation(void)
332332
Oid vague_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
PartParentSearch search;
338338
Oid parent;
@@ -343,7 +343,7 @@ finish_delayed_invalidation(void)
343343
{
344344
/* It's still parent */
345345
case PPS_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
static bool
531-
perform_parent_refresh(Oid parent)
536+
try_perform_parent_refresh(Oid parent)
532537
{
533538
Datum values[Natts_pathman_config];
534539
bool isnull[Natts_pathman_config];

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