Skip to main content

Module holders

Module holders 

Source
Expand description

Who holds a slug on this host outside the shared definitions: every objects.db on disk (a row’s slug, a former slug, a former display name’s route) and every live registration. A new agent’s slug is picked against these as well as the shared definitions, under the host-wide slug allocation lock, so a row only one channel or version knows (an agent from before the shared definitions, a template launch, a copy that was never published) can’t be given to a second agent; and the definition mirror reads them before it publishes a slug. The same holders plan::holder_of checks, read in one pass.

Each objects.db is read once and kept until its file (or its WAL) changes: most of them are older versions nobody runs, and a host can have hundreds.

Structs§

HostSlugs
Every holder on this host outside the shared definitions, as one read found them.