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

Function SysCacheInvalidate

src/backend/utils/cache/syscache.c:1688–1699  ·  view source on GitHub ↗

* SysCacheInvalidate * * Invalidate entries in the specified cache, given a hash value. * See CatCacheInvalidate() for more info. * * This routine is only quasi-public: it should only be used by inval.c. */

Source from the content-addressed store, hash-verified

1686 * This routine is only quasi-public: it should only be used by inval.c.
1687 */
1688void
1689SysCacheInvalidate(int cacheId, uint32 hashValue)
1690{
1691 if (cacheId < 0 || cacheId >= SysCacheSize)
1692 elog(ERROR, "invalid cache ID: %d", cacheId);
1693
1694 /* if this cache isn't initialized yet, no need to do anything */
1695 if (!PointerIsValid(SysCache[cacheId]))
1696 return;
1697
1698 CatCacheInvalidate(SysCache[cacheId], hashValue);
1699}
1700
1701/*
1702 * Certain relations that do not have system caches send snapshot invalidation

Callers 1

Calls 1

CatCacheInvalidateFunction · 0.85

Tested by

no test coverage detected