We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8db1174 commit 6d8570bCopy full SHA for 6d8570b
crates/factor-key-value/src/util.rs
@@ -251,6 +251,11 @@ impl Store for CachingStore {
251
keys: Vec<String>,
252
) -> anyhow::Result<Vec<(String, Option<Vec<u8>>)>, Error> {
253
let mut state = self.state.lock().await;
254
+
255
+ // Flush any outstanding writes first in case entries have been popped off the end of the LRU cache prior
256
+ // to their corresponding writes reaching the backing store.
257
+ state.flush().await?;
258
259
let mut found: Vec<(String, Option<Vec<u8>>)> = Vec::new();
260
let mut not_found: Vec<String> = Vec::new();
261
for key in keys {
0 commit comments