Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions crates/cold/src/task/runner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,12 @@ impl<B: ColdStorage> ColdStorageTask<B> {
debug!("Cold storage write channel closed");
break;
};
// Drain in-flight reads before executing the write to
// ensure exclusive access to the backend.
self.task_tracker.close();
self.task_tracker.wait().await;
self.task_tracker.reopen();

self.inner.handle_write(req).await;
}

Expand Down