mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-18 18:46:17 +00:00
fix(ecstore): tidy dst dir fsync group open
Co-Authored-By: heihutu <heihutu@gmail.com>
This commit is contained in:
@@ -435,11 +435,10 @@ impl OpenedDstDirFsyncGroup {
|
||||
}
|
||||
#[cfg(not(unix))]
|
||||
{
|
||||
let key = DstDirFsyncGroupKey::from_metadata(canonical_path.clone(), std::fs::metadata(&canonical_path)?)?;
|
||||
Ok(Self {
|
||||
key,
|
||||
dir: canonical_path,
|
||||
})
|
||||
let metadata = std::fs::metadata(&canonical_path)?;
|
||||
let key = DstDirFsyncGroupKey::from_metadata(canonical_path, metadata)?;
|
||||
let dir = key.canonical_path.clone();
|
||||
Ok(Self { key, dir })
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user