mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-29 16:37:07 +00:00
test(heal): cover partial rename retry admission (#5772)
This commit is contained in:
@@ -72,7 +72,9 @@ fn should_fail_heal_rename(bucket: &str, object: &str, disk_index: usize) -> boo
|
||||
.expect("heal rename failure registry should not poison");
|
||||
if let Some(position) = failures
|
||||
.iter()
|
||||
.position(|entry| entry == &(bucket.to_string(), object.to_string(), disk_index))
|
||||
.position(|(registered_bucket, registered_object, registered_index)| {
|
||||
registered_bucket == bucket && registered_object == object && *registered_index == disk_index
|
||||
})
|
||||
{
|
||||
failures.swap_remove(position);
|
||||
true
|
||||
|
||||
Reference in New Issue
Block a user