fix(lifecycle): Fix ObjectInfo fields and mod_time error handling (#1088)

Co-authored-by: loverustfs <hello@rustfs.com>
This commit is contained in:
tennisleng
2025-12-10 18:17:35 -05:00
committed by GitHub
parent 53c126d678
commit 978845b555
2 changed files with 16 additions and 4 deletions
+2
View File
@@ -473,6 +473,8 @@ impl Scanner {
size: usage.total_size as i64,
delete_marker: !usage.has_live_object && usage.delete_markers_count > 0,
mod_time: usage.last_modified_ns.and_then(Self::ns_to_offset_datetime),
// Set is_latest to true for live objects - required for lifecycle expiration evaluation
is_latest: usage.has_live_object,
..Default::default()
}
}