add: delete_versions Option<uuid>

This commit is contained in:
weisd
2024-08-27 15:10:58 +08:00
parent cfd6e2b32f
commit 9370cdc88b
4 changed files with 54 additions and 33 deletions
+1 -1
View File
@@ -418,7 +418,7 @@ impl StorageAPI for ECStore {
if pinfo.object_info.delete_marker && opts.version_id.is_empty() {
del_objects[i] = DeletedObject {
delete_marker: pinfo.object_info.delete_marker,
delete_marker_version_id: pinfo.object_info.version_id.to_string(),
delete_marker_version_id: pinfo.object_info.version_id.map(|v| v.to_string()),
object_name: utils::path::decode_dir_object(&pinfo.object_info.name),
delete_marker_mtime: pinfo.object_info.mod_time,
..Default::default()