ilm feature add

This commit is contained in:
likewu
2025-06-22 23:04:40 +08:00
parent 8452c11e9a
commit cc71f40a6d
93 changed files with 12534 additions and 100 deletions
+3 -3
View File
@@ -2125,7 +2125,7 @@ impl DiskAPI for LocalDisk {
// Check if the current bucket has a configured lifecycle policy
if let Ok((lc, _)) = metadata_sys::get_lifecycle_config(&cache.info.name).await {
if lc_has_active_rules(&lc, "") {
cache.info.life_cycle = Some(lc);
cache.info.lifecycle = Some(lc);
}
}
@@ -2234,9 +2234,9 @@ impl DiskAPI for LocalDisk {
}
}
for frer_version in fivs.free_versions.iter() {
for free_version in fivs.free_versions.iter() {
let _obj_info = ObjectInfo::from_file_info(
frer_version,
free_version,
&item.bucket,
&item.object_path().to_string_lossy(),
versioned,