Host storage for committed runtime revisions. A single atomic catalog owns every live and turn reference; a session pin protects the revision files.
Host storage for committed runtime revisions. A single atomic catalog owns every live and turn reference; a session pin protects the revision files.
(begin-snapshot! sid turn-run generation)Admit this invocation before its block runs. A later admission replaces authority,
even in the same worker. turn-run is the run identity, not its stored turn ID.
Admit this invocation before its block runs. A later admission replaces authority, even in the same worker. `turn-run` is the run identity, not its stored turn ID.
(delete-tree! f)Delete f and everything under it.
Delete `f` and everything under it.
(fence-session-defs! sid)Close snapshot admission for a deleted session. The tombstone survives file cleanup.
Close snapshot admission for a deleted session. The tombstone survives file cleanup.
(fork! source-id target-id turn-ids whole? format)Copy the selected committed revisions while pinning both sessions. Call inside the destination DB transaction, before making the destination visible.
Copy the selected committed revisions while pinning both sessions. Call inside the destination DB transaction, before making the destination visible.
(link-file! source target)Make target the same file as source with an atomic replace. A hard link shares
the data. A filesystem without hard links gets a copy, and one without atomic moves
a plain replace, like [[paths/spit-private!]].
Make `target` the same file as `source` with an atomic replace. A hard link shares the data. A filesystem without hard links gets a copy, and one without atomic moves a plain replace, like [[paths/spit-private!]].
(prune-turns! sid ordered-turns keep-count)Remove older turn references and collect revisions that no retained reference pins.
Remove older turn references and collect revisions that no retained reference pins.
(publish! sid
turn-id
generation
owner
while-current!
publish?
live?
capture!
committed!)Stage capture! under the session pin. Publish only for this invocation and
while the host's terminal-state gate permits it. The adapter returns a staged
manifest or nil; committed! may update its capture cache after publication.
Stage `capture!` under the session pin. Publish only for this invocation and while the host's terminal-state gate permits it. The adapter returns a staged manifest or nil; `committed!` may update its capture cache after publication.
(read-live sid read!)Read one pinned catalog and materialize its bytes before releasing the pin.
Read one pinned catalog and materialize its bytes before releasing the pin.
(read-manifest sid rev format)Require the saved revision to match the adapter's format exactly.
Require the saved revision to match the adapter's format exactly.
(read-source dir manifest source-file limit)Read and verify a single native source file in a pinned revision.
Read and verify a single native source file in a pinned revision.
(read-state sid format source-file)Read verified native source and opaque value blobs from one live manifest.
Read verified native source and opaque value blobs from one live manifest.
(snapshot-receipt sid owner)Return a retained receipt, or :unavailable once its query window ends.
Return a retained receipt, or `:unavailable` once its query window ends.
(stage! sid previous format source-file source-limit raw capture!)Stage one revision. Capture writes value blobs through stage-blob! and
returns their inventory; the host writes native helper source and metadata.
Stage one revision. Capture writes value blobs through `stage-blob!` and returns their inventory; the host writes native helper source and metadata.
(with-defs-lock session-id & body)Run body while this process holds the [[defs-lock]] of session-id.
Run `body` while this process holds the [[defs-lock]] of `session-id`.
(with-snapshot-lock sid & body)The OS lock pins files against collection in other gateway processes. Its file must survive session deletion so waiters always lock the same inode.
The OS lock pins files against collection in other gateway processes. Its file must survive session deletion so waiters always lock the same inode.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |