MCPcopy Create free account
hub / github.com/apache/cloudberry / CallSyscacheCallbacks

Function CallSyscacheCallbacks

src/backend/utils/cache/inval.c:1591–1608  ·  view source on GitHub ↗

* CallSyscacheCallbacks * * This is exported so that CatalogCacheFlushCatalog can call it, saving * this module from knowing which catcache IDs correspond to which catalogs. */

Source from the content-addressed store, hash-verified

1589 * this module from knowing which catcache IDs correspond to which catalogs.
1590 */
1591void
1592CallSyscacheCallbacks(int cacheid, uint32 hashvalue)
1593{
1594 int i;
1595
1596 if (cacheid < 0 || cacheid >= SysCacheSize)
1597 elog(ERROR, "invalid cache ID: %d", cacheid);
1598
1599 i = syscache_callback_links[cacheid] - 1;
1600 while (i >= 0)
1601 {
1602 struct SYSCACHECALLBACK *ccitem = syscache_callback_list + i;
1603
1604 Assert(ccitem->id == cacheid);
1605 ccitem->function(ccitem->arg, cacheid, hashvalue);
1606 i = ccitem->link - 1;
1607 }
1608}
1609
1610/*
1611 * LogLogicalInvalidations

Callers 2

CatalogCacheFlushCatalogFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected