hypha: use manifest digest as part of key in image cache

This commit is contained in:
Alex Zenla
2024-01-22 07:24:42 -08:00
parent 3085a3738f
commit 04092c1d3b
3 changed files with 19 additions and 9 deletions

View File

@ -195,7 +195,8 @@ impl XenClient {
let mut count: u32 = 0;
loop {
if count >= 100 {
return Err(XenClientError::new("unable to destroy device"));
warn!("unable to safely destroy backend: {}", backend);
break;
}
let state = self.store.read_string(&state_path)?;
let state = i64::from_str(&state).unwrap_or(-1);