mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-06 13:27:43 +00:00
fix fileinfo serialize
This commit is contained in:
@@ -94,7 +94,7 @@ impl Erasure {
|
||||
}
|
||||
}
|
||||
|
||||
warn!("Erasure encode errs {:?}", &errs);
|
||||
debug!("Erasure encode errs {:?}", &errs);
|
||||
|
||||
let none_count = errs.iter().filter(|&x| x.is_none()).count();
|
||||
if none_count >= write_quorum {
|
||||
|
||||
@@ -27,7 +27,7 @@ pub struct FileInfo {
|
||||
pub fresh: bool, // indicates this is a first time call to write FileInfo.
|
||||
pub parts: Vec<ObjectPartInfo>,
|
||||
pub is_latest: bool,
|
||||
#[serde(skip_serializing_if = "Option::is_none", default)]
|
||||
// #[serde(skip_serializing_if = "Option::is_none", default)]
|
||||
pub tags: Option<HashMap<String, String>>,
|
||||
pub metadata: Option<HashMap<String, String>>,
|
||||
pub num_versions: usize,
|
||||
|
||||
Reference in New Issue
Block a user