mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-25 13:36:50 +00:00
fix: #174
This commit is contained in:
@@ -407,10 +407,15 @@ impl S3 for FS {
|
|||||||
};
|
};
|
||||||
let last_modified = info.mod_time.map(Timestamp::from);
|
let last_modified = info.mod_time.map(Timestamp::from);
|
||||||
|
|
||||||
|
let metadata = Some(info.user_defined);
|
||||||
|
|
||||||
let output = HeadObjectOutput {
|
let output = HeadObjectOutput {
|
||||||
content_length: Some(try_!(i64::try_from(info.size))),
|
content_length: Some(try_!(i64::try_from(info.size))),
|
||||||
content_type,
|
content_type,
|
||||||
last_modified,
|
last_modified,
|
||||||
|
e_tag: info.etag,
|
||||||
|
metadata,
|
||||||
|
version_id: info.version_id.map(|v| v.to_string()),
|
||||||
// metadata: object_metadata,
|
// metadata: object_metadata,
|
||||||
..Default::default()
|
..Default::default()
|
||||||
};
|
};
|
||||||
|
|||||||
+2
-2
@@ -18,8 +18,8 @@ fi
|
|||||||
|
|
||||||
export RUSTFS_STORAGE_CLASS_INLINE_BLOCK="512 KB"
|
export RUSTFS_STORAGE_CLASS_INLINE_BLOCK="512 KB"
|
||||||
|
|
||||||
DATA_DIR_ARG="./target/volume/test{0...4}"
|
# DATA_DIR_ARG="./target/volume/test{0...4}"
|
||||||
# DATA_DIR_ARG="./target/volume/test"
|
DATA_DIR_ARG="./target/volume/test"
|
||||||
|
|
||||||
if [ -n "$1" ]; then
|
if [ -n "$1" ]; then
|
||||||
DATA_DIR_ARG="$1"
|
DATA_DIR_ARG="$1"
|
||||||
|
|||||||
Reference in New Issue
Block a user