fix: window error (#3167)

fix window error
This commit is contained in:
唐小鸭
2026-06-02 13:09:57 +08:00
committed by GitHub
parent 1d46047d6f
commit 480babc0af
+2
View File
@@ -683,6 +683,7 @@ fn validate_local_physical_disk_independence(pools: &[Endpoints]) -> Result<()>
} }
let mut device_paths = BTreeMap::<String, BTreeSet<String>>::new(); let mut device_paths = BTreeMap::<String, BTreeSet<String>>::new();
#[cfg(not(windows))]
let mut missing_paths = Vec::new(); let mut missing_paths = Vec::new();
for path in &local_paths { for path in &local_paths {
@@ -739,6 +740,7 @@ fn validate_local_physical_disk_independence(pools: &[Endpoints]) -> Result<()>
} }
} }
#[cfg(not(windows))]
if !missing_paths.is_empty() { if !missing_paths.is_empty() {
warn!( warn!(
missing_paths = ?missing_paths, missing_paths = ?missing_paths,