* 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
| 407 | * So, re-read only if the map is valid now. |
| 408 | */ |
| 409 | void |
| 410 | RelationMapInvalidate(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 |
no test coverage detected