fix(sqlite): reject work after shutdown close#4903
fix(sqlite): reject work after shutdown close#4903NathanFlurry wants to merge 1 commit intographite-base/4903from
Conversation
Review: fix(sqlite): reject work after shutdown closeAdds a CorrectnessThe three critical cases in
The The Minor suggestions1. Ordering: A 2. The pub(crate) async fn cleanup(&self) -> Result<()> {
self.shutdown_closed.store(true, Ordering::SeqCst);
#[cfg(feature = "sqlite-local")]
{
let _open_guard = self.open_lock.lock().await;
self.stop_preload_hint_flush_task();
self.flush_preload_hints_before_close().await;
}
self.close().await
}Coverage of public APIAll async write paths ( VerdictThe fix is correct and well-scoped. The two nits above (memory ordering, |
6aed029 to
9bf8eb7
Compare
2f3266d to
977011c
Compare
9bf8eb7 to
c4e495b
Compare
977011c to
8ce7fbe
Compare

Description
Please include a summary of the changes and the related issue. Please also include relevant motivation and context.
Type of change
How Has This Been Tested?
Please describe the tests that you ran to verify your changes.
Checklist: