Skip to content

Commit

Permalink
Merge pull request #532 from imeoer/fix-fscache-read-warn
Browse files Browse the repository at this point in the history
fscache: remove warning when handle fscache read request
  • Loading branch information
jiangliu authored Jun 24, 2022
2 parents 1282fd9 + a375d1e commit edb49cf
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/bin/nydusd/fs_cache.rs
Original file line number Diff line number Diff line change
Expand Up @@ -583,13 +583,7 @@ impl FsCacheHandler {
warn!("fscache: internal error: cached object is not BlobCache objects");
}
Some(obj) => match obj.fetch_range_uncompressed(msg.off, msg.len) {
Ok(v) if v == msg.len as usize => {}
Ok(v) => {
warn!(
"fscache: read data from blob object not matched: {} != {}",
v, msg.len
);
}
Ok(_) => {}
Err(e) => error!(
"{}",
format!("fscache: failed to read data from blob object: {}", e,)
Expand Down

0 comments on commit edb49cf

Please sign in to comment.