* recordExtensionMembership * Record that the object identified by the given catalog ID * belongs to the given extension */
| 948 | * belongs to the given extension |
| 949 | */ |
| 950 | void |
| 951 | recordExtensionMembership(CatalogId catId, ExtensionInfo *ext) |
| 952 | { |
| 953 | CatalogIdMapEntry *entry; |
| 954 | bool found; |
| 955 | |
| 956 | /* CatalogId hash table must exist, if we have an ExtensionInfo */ |
| 957 | Assert(catalogIdHash != NULL); |
| 958 | |
| 959 | /* Add reference to CatalogId hash */ |
| 960 | entry = catalogid_insert(catalogIdHash, catId, &found); |
| 961 | if (!found) |
| 962 | { |
| 963 | entry->dobj = NULL; |
| 964 | entry->ext = NULL; |
| 965 | } |
| 966 | Assert(entry->ext == NULL); |
| 967 | entry->ext = ext; |
| 968 | } |
| 969 | |
| 970 | /* |
| 971 | * findOwningExtension |
no outgoing calls
no test coverage detected