Expand description
Minimal watcher-side collection primitives.
Watcher threads may invalidate paths and collect a stable byte snapshot, but never hash, store, or publish artifacts. Those operations belong to plane workers so a burst of watcher events cannot mutate a view directly.
Structs§
- File
Stamp - The metadata fields that make a read safe to hand to a plane worker.
- Stable
Read - A value whose bytes were bracketed by equal filesystem stamps.
- Watcher
Collector - The watcher-owned queue of invalidations. It deliberately has no hashing, blob-store, or publication API; plane workers consume its collected paths.
Enums§
Constants§
- MAX_
STABLE_ READ_ ATTEMPTS - Includes the first read plus every permitted retry.
- MAX_
STABLE_ READ_ RETRIES - A changed stat may trigger this many additional reads after the first read.
Functions§
- read_
stable - Performs the stable-read algorithm with injectable stat and read operations.
- read_
stable_ file - Reads
pathonly when an identical stat surrounds the read.