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

Function RelationMapInvalidate

src/backend/utils/cache/relmapper.c:409–422  ·  view source on GitHub ↗

* RelationMapInvalidate * * This routine is invoked for SI cache flush messages. We must re-read * the indicated map file. However, we might receive a SI message in a * process that hasn't yet, and might never, load the mapping files; * for example the autovacuum launcher, which *must not* try to read * a local map since it is attached to no particular database. * So, re-read only if the

Source from the content-addressed store, hash-verified

407 * So, re-read only if the map is valid now.
408 */
409void
410RelationMapInvalidate(bool shared)
411{
412 if (shared)
413 {
414 if (shared_map.magic == RELMAPPER_FILEMAGIC)
415 load_relmap_file(true, false);
416 }
417 else
418 {
419 if (local_map.magic == RELMAPPER_FILEMAGIC)
420 load_relmap_file(false, false);
421 }
422}
423
424/*
425 * RelationMapInvalidateAll

Callers 1

Calls 1

load_relmap_fileFunction · 0.85

Tested by

no test coverage detected