package granary
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha256=8b18780ea373be48301d9f333925860a2f9110fc0ac28684295118d72b65a67e
sha512=25ca3c9c5e2b528704a542502e0f37dc33ba003f65622d969b8c2b800778585f8ef0cf89b36e6679832e3993e8303aecddfc662742baf7044d6afe4a796b8f11
doc/granary.store/Granary_store/Store_event/index.html
Module Granary_store.Store_eventSource
Engine-internal events surfaced to an optional observer (the internals monitor; #382). Pure — depends on nothing in Granary_store.Store, so Store can depend on it without a cycle. Events are fire-and-forget; the library never blocks on an observer.
type t = | Txn_begin of {}| Txn_commit of {}| Txn_rollback of {}| Savepoint_begin of {}| Savepoint_release of {}| Savepoint_rollback of {}| Wal_append of {}| Wal_reset of {}| Checkpoint_begin of {}| Checkpoint_end of {}| Page_read of {txn_id : int64;tree : int;(*
*)treeis the store tree id whose operation triggered the I/O;-1when no op context was active (best-effort forPage_write, which is stamped at WAL-flush time with the most recently active tree).page : int64;
}| Wal_read of {txn_id : int64;tree : int;(*
*)treeis the store tree id whose operation triggered the WAL-served read (#392);-1when no op context was active. Same best-efforttxn_id/treestamping asPage_read.page : int64;
}| Page_write of {txn_id : int64;tree : int;(*
*)treeis the store tree id whose operation triggered the I/O;-1when no op context was active (best-effort forPage_write, which is stamped at WAL-flush time with the most recently active tree).page : int64;
}| Page_alloc of {txn_id : int64;tree : int;(*
*)treeis the store tree id whose operation triggered the I/O;-1when no op context was active (best-effort forPage_write, which is stamped at WAL-flush time with the most recently active tree).page : int64;reused : bool;
}| Page_free of {txn_id : int64;tree : int;(*
*)treeis the store tree id whose operation triggered the I/O;-1when no op context was active (best-effort forPage_write, which is stamped at WAL-flush time with the most recently active tree).page : int64;
}
The transaction id an event belongs to, or None for events with no single owning txn (Wal_reset, Checkpoint_*). Used by the monitor's txn-id filter.
tree_id_of ev is the store tree id for the page/WAL-read events (Page_read/Wal_read/Page_write/Page_alloc/Page_free), or None for every other event. -1 means "no active tree context".
Human-readable one-line rendering of an event.