Skip to content

Commit

Permalink
Merge pull request #769 from changweige/print-prefetch-error
Browse files Browse the repository at this point in the history
storage: print explicit error message
  • Loading branch information
jiangliu authored Sep 30, 2022
2 parents ac2b724 + e1a0458 commit 59e1d2c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion storage/src/device.rs
Original file line number Diff line number Diff line change
Expand Up @@ -975,9 +975,12 @@ impl BlobDevice {

for io_vec in io_vecs.iter() {
if let Some(blob) = self.get_blob_by_iovec(io_vec) {
// Prefetch errors are ignored.
let _ = blob
.prefetch(blob.clone(), &[], &io_vec.bi_vec)
.map_err(|_e| eio!("failed to prefetch blob data"));
.map_err(|e| {
error!("failed to prefetch blob data, {}", e);
});
}
}

Expand Down

0 comments on commit 59e1d2c

Please sign in to comment.