From 6329eee92acd94ce951faadbaf156b6bb0b512c2 Mon Sep 17 00:00:00 2001 From: weisd Date: Tue, 24 Sep 2024 22:51:21 +0800 Subject: [PATCH] fix fileinfo serialize --- ecstore/src/erasure.rs | 2 +- ecstore/src/store_api.rs | 2 +- rustfs/src/storage/ecfs.rs | 1 + scripts/run.sh | 2 +- 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/ecstore/src/erasure.rs b/ecstore/src/erasure.rs index da245116d..76da879c5 100644 --- a/ecstore/src/erasure.rs +++ b/ecstore/src/erasure.rs @@ -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 { diff --git a/ecstore/src/store_api.rs b/ecstore/src/store_api.rs index 127107059..bcf9e0a8e 100644 --- a/ecstore/src/store_api.rs +++ b/ecstore/src/store_api.rs @@ -27,7 +27,7 @@ pub struct FileInfo { pub fresh: bool, // indicates this is a first time call to write FileInfo. pub parts: Vec, pub is_latest: bool, - #[serde(skip_serializing_if = "Option::is_none", default)] + // #[serde(skip_serializing_if = "Option::is_none", default)] pub tags: Option>, pub metadata: Option>, pub num_versions: usize, diff --git a/rustfs/src/storage/ecfs.rs b/rustfs/src/storage/ecfs.rs index ae44da1ee..090afb316 100644 --- a/rustfs/src/storage/ecfs.rs +++ b/rustfs/src/storage/ecfs.rs @@ -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)) }; diff --git a/scripts/run.sh b/scripts/run.sh index 1a7b2073a..248d286b2 100755 --- a/scripts/run.sh +++ b/scripts/run.sh @@ -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}"