mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-25 05:26:50 +00:00
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:
@@ -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()));
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user