* CallSyscacheCallbacks * * This is exported so that CatalogCacheFlushCatalog can call it, saving * this module from knowing which catcache IDs correspond to which catalogs. */
| 1589 | * this module from knowing which catcache IDs correspond to which catalogs. |
| 1590 | */ |
| 1591 | void |
| 1592 | CallSyscacheCallbacks(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 |
no outgoing calls
no test coverage detected