pub fn with_lock<T>(
root: &Path,
operation: impl FnOnce() -> Result<T>,
) -> Result<T>Expand description
Run operation holding the exclusive compaction lock, blocking.
Only the opt-out wipe uses this. It is not an exit path, so blocking is fine there and nowhere else.