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

Function CacheInvalidateRelmap

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

* CacheInvalidateRelmap * Register invalidation of the relation mapping for a database, * or for the shared catalogs if databaseId is zero. * * Sending this type of invalidation msg forces other backends to re-read * the indicated relation mapping file. It is also necessary to send a * relcache inval for the specific relations whose mapping has been altered, * else the relcache won't get

Source from the content-addressed store, hash-verified

1501 * replaying WAL as well as when creating it.
1502 */
1503void
1504CacheInvalidateRelmap(Oid databaseId)
1505{
1506 SharedInvalidationMessage msg;
1507
1508 msg.rm.id = SHAREDINVALRELMAP_ID;
1509 msg.rm.dbId = databaseId;
1510 /* check AddCatcacheInvalidationMessage() for an explanation */
1511 VALGRIND_MAKE_MEM_DEFINED(&msg, sizeof(msg));
1512
1513 SendSharedInvalidMessages(&msg, 1);
1514}
1515
1516
1517/*

Callers 1

write_relmap_fileFunction · 0.85

Calls 1

Tested by

no test coverage detected