Summary
WAL mutex blocks the async runtime
The write-ahead log is wrapped in Arc<std::sync::Mutex<Wal>>, which means every lock acquisition blocks the Tokio runtime thread while disk I/O completes. Under concurrent load, this can stall all tasks on that worker thread, degrading throughput and latency for unrelated operations.
No project-wide clippy or formatting configuration
The project has no clippy.toml or rustfmt.toml, meaning there are no shared lint thresholds or formatting rules.
Acceptance Criteria
Summary
WAL mutex blocks the async runtime
The write-ahead log is wrapped in
Arc<std::sync::Mutex<Wal>>, which means every lock acquisition blocks the Tokio runtime thread while disk I/O completes. Under concurrent load, this can stall all tasks on that worker thread, degrading throughput and latency for unrelated operations.No project-wide clippy or formatting configuration
The project has no
clippy.tomlorrustfmt.toml, meaning there are no shared lint thresholds or formatting rules.Acceptance Criteria
std::sync::Mutexused in async code pathscargo fmt --all --checkpassescargo clippy --all-targets -- -D warningspasses