init metacache io

This commit is contained in:
weisd
2024-12-05 17:40:55 +08:00
committed by weisd
parent 0cf7c19b96
commit 25e3807428
10 changed files with 330 additions and 33 deletions
+5 -2
View File
@@ -6,7 +6,6 @@ use std::{
time::Duration,
};
use crate::heal::heal_ops::{HealEntryFn, HealSequence};
use crate::{
bitrot::{bitrot_verify, close_bitrot_writers, new_bitrot_filereader, new_bitrot_filewriter, BitrotFileWriter},
cache_value::metacache_set::{list_path_raw, ListPathRawOptions},
@@ -56,6 +55,10 @@ use crate::{
heal::data_scanner::{globalHealConfig, HEAL_DELETE_DANGLING},
store_api::ListObjectVersionsInfo,
};
use crate::{
heal::heal_ops::{HealEntryFn, HealSequence},
io::Writer,
};
use futures::future::join_all;
use glob::Pattern;
use http::HeaderMap;
@@ -1327,7 +1330,7 @@ impl SetDisks {
let opts = opts.clone();
futures.push(async move {
if let Some(disk) = disk {
disk.walk_dir(opts).await
disk.walk_dir(opts, Writer::NotUse).await
} else {
Err(Error::new(DiskError::DiskNotFound))
}