* 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. */
| 1686 | * This routine is only quasi-public: it should only be used by inval.c. |
| 1687 | */ |
| 1688 | void |
| 1689 | SysCacheInvalidate(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 |
no test coverage detected