mirror of
https://github.com/rustfs/rustfs.git
synced 2026-07-27 16:48:58 +00:00
todo
This commit is contained in:
@@ -709,6 +709,11 @@ impl ECStore {
|
||||
}
|
||||
|
||||
fn decommission_object(&self, id: usize, bucket: String, rd: GetObjectReader) -> Result<()> {
|
||||
let object_info = rd.object_info;
|
||||
let actual_size = object_info.get_actual_size()?;
|
||||
|
||||
if object_info.is_multipart() {}
|
||||
|
||||
unimplemented!()
|
||||
}
|
||||
}
|
||||
|
||||
@@ -725,6 +725,10 @@ impl ObjectInfo {
|
||||
}
|
||||
}
|
||||
|
||||
pub fn is_multipart(&self) -> bool {
|
||||
self.etag.as_ref().is_some_and(|v| v.len() != 32)
|
||||
}
|
||||
|
||||
pub fn get_actual_size(&self) -> Result<usize> {
|
||||
if let Some(actual_size) = self.actual_size {
|
||||
return Ok(actual_size);
|
||||
|
||||
Reference in New Issue
Block a user