fix: #137 #186 skip delete marker objects when list object

This commit is contained in:
weisd
2024-12-31 16:57:01 +08:00
parent 2d0f286a66
commit dd0a744a3e
11 changed files with 128 additions and 32 deletions
+5
View File
@@ -80,6 +80,9 @@ pub enum StorageError {
#[error("Decommission not started")]
DecommissionNotStarted,
#[error("DoneForNow")]
DoneForNow,
}
impl StorageError {
@@ -111,6 +114,7 @@ impl StorageError {
StorageError::DecommissionNotStarted => 0x18,
StorageError::InvalidPart(_, _, _) => 0x19,
StorageError::VolumeNotFound(_) => 0x20,
StorageError::DoneForNow => 0x21,
}
}
@@ -146,6 +150,7 @@ impl StorageError {
0x18 => Some(StorageError::DecommissionNotStarted),
0x19 => Some(StorageError::InvalidPart(Default::default(), Default::default(), Default::default())),
0x20 => Some(StorageError::VolumeNotFound(Default::default())),
0x21 => Some(StorageError::DoneForNow),
_ => None,
}
}