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

Function RelationMapFinishBootstrap

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

* RelationMapFinishBootstrap * * Write out the initial relation mapping files at the completion of * bootstrap. All the mapped files should have been made known to us * via RelationMapUpdateMap calls. */

Source from the content-addressed store, hash-verified

564 * via RelationMapUpdateMap calls.
565 */
566void
567RelationMapFinishBootstrap(void)
568{
569 Assert(IsBootstrapProcessingMode());
570
571 /* Shouldn't be anything "pending" ... */
572 Assert(active_shared_updates.num_mappings == 0);
573 Assert(active_local_updates.num_mappings == 0);
574 Assert(pending_shared_updates.num_mappings == 0);
575 Assert(pending_local_updates.num_mappings == 0);
576
577 /* Write the files; no WAL or sinval needed */
578 write_relmap_file(true, &shared_map, false, false, false,
579 InvalidOid, GLOBALTABLESPACE_OID, NULL);
580 write_relmap_file(false, &local_map, false, false, false,
581 MyDatabaseId, MyDatabaseTableSpace, DatabasePath);
582}
583
584/*
585 * RelationMapInitialize

Callers 1

BootstrapModeMainFunction · 0.85

Calls 1

write_relmap_fileFunction · 0.85

Tested by

no test coverage detected