mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-27 23:47:28 +00:00
build(deps): bump the dependencies group with 19 updates (#1745)
This commit is contained in:
@@ -1086,7 +1086,7 @@ pub async fn scan_data_folder(
|
||||
|
||||
// Create skip_heal flag
|
||||
let is_erasure_mode = is_erasure().await;
|
||||
let skip_heal = std::sync::Arc::new(std::sync::atomic::AtomicBool::new(!is_erasure_mode || cache.info.skip_healing));
|
||||
let skip_heal = Arc::new(std::sync::atomic::AtomicBool::new(!is_erasure_mode || cache.info.skip_healing));
|
||||
|
||||
// Create heal_object_select flag
|
||||
let heal_object_select = if is_erasure_mode && !cache.info.skip_healing {
|
||||
@@ -1144,11 +1144,11 @@ pub async fn scan_data_folder(
|
||||
new_cache.info.last_update = Some(SystemTime::now());
|
||||
new_cache.info.next_cycle = cache.info.next_cycle;
|
||||
|
||||
(close_disk)().await;
|
||||
close_disk().await;
|
||||
Ok(new_cache.clone())
|
||||
}
|
||||
Err(e) => {
|
||||
(close_disk)().await;
|
||||
close_disk().await;
|
||||
// No useful information, return original cache
|
||||
Err(e)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user