Ferricstore.Store.LocalTxStore (ferricstore v0.9.1)

Copy Markdown View Source

Transaction-local store context for MULTI/EXEC.

Prepared transaction routing admits only commands whose keys belong to the owning shard. Operations then go directly to the shard's ETS and pending write state, avoiding nested GenServer or Raft calls during replicated apply. Store.Ops dispatches on this struct type and retains defensive nonlocal branches for callers outside the prepared transaction contract.

Summary

Functions

Creates a LocalTxStore from shard state.

Types

t()

@type t() :: %Ferricstore.Store.LocalTxStore{
  instance_ctx: FerricStore.Instance.t(),
  shard_index: non_neg_integer(),
  shard_state: map()
}

Functions

new(state)

Creates a LocalTxStore from shard state.