diff --git a/crates/ecstore/src/bucket/lifecycle/bucket_lifecycle_ops.rs b/crates/ecstore/src/bucket/lifecycle/bucket_lifecycle_ops.rs index c74451095..0366551e0 100644 --- a/crates/ecstore/src/bucket/lifecycle/bucket_lifecycle_ops.rs +++ b/crates/ecstore/src/bucket/lifecycle/bucket_lifecycle_ops.rs @@ -4379,6 +4379,10 @@ pub async fn expire_transitioned_object( Ok(dobj) } +#[allow( + dead_code, + reason = "MinIO-parity tier/lifecycle entry point that this port never wired (backlog#1823)" +)] pub fn gen_transition_objname(bucket: &str) -> Result { let us = Uuid::new_v4().to_string(); let mut hasher = Sha256::new(); diff --git a/crates/ecstore/src/disk/mod.rs b/crates/ecstore/src/disk/mod.rs index 3aaa54c8f..ecd0179e0 100644 --- a/crates/ecstore/src/disk/mod.rs +++ b/crates/ecstore/src/disk/mod.rs @@ -1375,6 +1375,7 @@ pub fn conv_part_err_to_int(err: &Option) -> usize { } } +#[allow(dead_code, reason = "asserted by this file's tests (backlog#1823)")] pub fn has_part_err(part_errs: &[usize]) -> bool { part_errs.iter().any(|err| *err != CHECK_PART_SUCCESS) } diff --git a/crates/ecstore/src/set_disk/mod.rs b/crates/ecstore/src/set_disk/mod.rs index dcc416d47..ad5db566b 100644 --- a/crates/ecstore/src/set_disk/mod.rs +++ b/crates/ecstore/src/set_disk/mod.rs @@ -102,9 +102,7 @@ use crate::storage_api_contracts::{ }; use crate::store::utils::is_reserved_or_invalid_bucket; use crate::{ - bucket::lifecycle::bucket_lifecycle_ops::{ - LifecycleOps, gen_transition_objname, get_transitioned_object_reader_with_tier_manager, put_restore_opts, - }, + bucket::lifecycle::bucket_lifecycle_ops::{LifecycleOps, get_transitioned_object_reader_with_tier_manager, put_restore_opts}, cache_value::metacache_set::{ListPathRawOptions, list_path_raw}, config::storageclass, disk::{