mirror of
https://github.com/rustfs/rustfs.git
synced 2026-01-17 01:30:33 +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,
|
||||
|
||||
@@ -629,6 +629,7 @@ impl S3 for FS {
|
||||
..
|
||||
} = req.input;
|
||||
|
||||
// error!("complete_multipart_upload {:?}", multipart_upload);
|
||||
// mc cp step 5
|
||||
|
||||
let Some(multipart_upload) = multipart_upload else { return Err(s3_error!(InvalidPart)) };
|
||||
|
||||
@@ -7,7 +7,7 @@ mkdir -p ./target/volume/test{0..4}
|
||||
|
||||
|
||||
if [ -z "$RUST_LOG" ]; then
|
||||
export RUST_LOG="rustfs=debug,ecstore=debug,s3s=debug"
|
||||
export RUST_LOG="rustfs=debug,ecstore=info,s3s=debug"
|
||||
fi
|
||||
|
||||
DATA_DIR_ARG="./target/volume/test{0...4}"
|
||||
|
||||
Reference in New Issue
Block a user