Liking cljdoc? Tell your friends :D

com.blockether.vis.internal.session.checkpoint

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.
raw docstring

begin-snapshot!clj

(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.
sourceraw docstring

blob-fileclj

(blob-file dir digest)
source

checkpoint-receiptclj

(checkpoint-receipt status revision turn-id first-turn? omitted owner)
source

collect-revisions!clj

(collect-revisions! sid catalog)
source

delete-tree!clj

(delete-tree! f)

Delete f and everything under it.

Delete `f` and everything under it.
sourceraw docstring

digest-bytesclj

(digest-bytes digest raw)
source

fence-session-defs!clj

(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.
sourceraw docstring

fork!clj

(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.
sourceraw docstring

(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!]].
sourceraw docstring

prune-turns!clj

(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.
sourceraw docstring

publish!clj

(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.
sourceraw docstring

publish-receipt!clj

(publish-receipt! sid catalog receipt)
source

read-artifactclj

(read-artifact file size limit digest)
source

read-catalogclj

(read-catalog sid)
source

read-liveclj

(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.
sourceraw docstring

read-manifestclj

(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.
sourceraw docstring

read-sourceclj

(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.
sourceraw docstring

read-stateclj

(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.
sourceraw docstring

revision-dirclj

(revision-dir sid rev)
source

snapshot-catalog-fileclj

(snapshot-catalog-file sid)
source

snapshot-dirclj

(snapshot-dir sid)
source

snapshot-faultclj

(snapshot-fault reason)
source

snapshot-receiptclj

(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.
sourceraw docstring

stage!clj

(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.
sourceraw docstring

stage-blob!clj

(stage-blob! dir prior cap raw)
source

with-defs-lockcljmacro

(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`.
sourceraw docstring

with-snapshot-lockcljmacro

(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.
sourceraw docstring

write-catalog!clj

(write-catalog! sid catalog)
source

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
←Move to previous article
→Move to next article
Ctrl+/Jump to the search field
× close