fix(scanner): skip recent IO-error objects (#1860)

Signed-off-by: LoganZ2 <103290230+LoganZ2@users.noreply.github.com>
Co-authored-by: houseme <housemecn@gmail.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: heihutu <30542132+heihutu@users.noreply.github.com>
Co-authored-by: loverustfs <hello@rustfs.com>
Co-authored-by: 安正超 <anzhengchao@gmail.com>
This commit is contained in:
LoganZ2
2026-02-27 22:25:52 +08:00
committed by GitHub
parent 55396f13d4
commit e73b17aff6
5 changed files with 362 additions and 11 deletions
+2 -2
View File
@@ -499,7 +499,7 @@ impl ScannerIODisk for Disk {
&item.object_path()
);
return Err(StorageError::other("skip file".to_string()));
return Err(StorageError::other("failed to read metadata".to_string()));
}
};
@@ -510,7 +510,7 @@ impl ScannerIODisk for Disk {
Ok(versions) => versions,
Err(e) => {
error!("Failed to get file info versions: {}", e);
return Err(StorageError::other("skip file".to_string()));
return Err(StorageError::other("failed to get file info".to_string()));
}
};