Skip to main content

Module storage_runtime

Module storage_runtime 

Source
Expand description

Authoritative server storage runtime (P0.2 / ADR-0001).

The daemon holds exactly one of:

  • ServerStorageRuntime::Standalone — ordinary single-node data plane over a local mongreldb_core::Database
  • [ServerStorageRuntime::Cluster] — consensus/tablet data plane via [crate::cluster_runtime::ClusterRuntimeHandle]; ordinary public writes must not use a standalone WAL bypass

Dual-root ownership (standalone user database + live cluster runtime as peer data planes) is refused.

The standalone types (StandaloneRuntime, ServerStorageRuntime, StorageRuntimeError) are always compiled — the hot SQL path is typed over them. The cluster pieces (ClusterGatewayRuntime, the Cluster variant, and the cluster accessors) exist only with the cluster feature.

Structs§

StandaloneRuntime
Standalone (single-node server) data plane.
StorageRuntimeError
Error when code asks the standalone data plane for a cluster process (or the reverse).

Enums§

ServerStorageRuntime
Single authoritative storage runtime for the HTTP/native daemon (P0.2).