pub fn init_checkpoint_store(config: &HyprConfig) -> Result<DeploymentStoreInit>Expand description
Explicitly create the empty deployment checkpoint store for a newly provisioned deployment, or reuse a healthy retained one, on the configured backend (#1257).
Local backend: delegates to
hyprstream_discovery::initialize_deployment_checkpoint_store (creates
the RocksDB store and writes the first-boot marker when the store is
safely absent; validates and reuses a healthy retained store; fails
closed on invalid retained state).
RDS backend, normal mode: proves the shared store holds no accepted
states before writing the first-boot marker. A shared store that already
holds accepted states is healthy retained state: the verified readback
of those states is the validation, and the store is reused
(DeploymentStoreInit::Reused) rather than refused — a reboot of an
initialized deployment is not an initialization error. Fresh-genesis mode
is separate and explicit: it clears only the configured records KV and
writes that marker atomically. The registry deletes the marker in the
same transaction as its first accepted-state commit.