Expand description
Process-local + cross-process advisory locking (§5.7).
redb guarantees a single in-process writer but offers no protection between
processes (GUI + CLI sharing one meta.redb). We layer an fs2 flock on a
dedicated lock file:
- shared for reads (multiple readers allowed),
- exclusive for writes (mutates the index).
The memo files themselves are never locked — atomic rename keeps them safe, and external editors/agents may read and write them freely.
Structs§
- File
Lock - A held advisory lock. Dropping it releases the flock.