Correct singlepart_copy_limit unit (#1561)

This is documented to be in MB not KB.

Co-authored-by: Takeshi Nakatani <ggtakec@gmail.com>
This commit is contained in:
Andrew Gaul 2021-02-11 22:53:50 +09:00 committed by GitHub
parent ec8bae9827
commit 7f6fbb0021
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -4519,7 +4519,7 @@ static int my_fuse_opt_proc(void* data, const char* arg, int key, struct fuse_ar
return 0; return 0;
} }
if(is_prefix(arg, "singlepart_copy_limit=")){ if(is_prefix(arg, "singlepart_copy_limit=")){
singlepart_copy_limit = static_cast<int64_t>(cvt_strtoofft(strchr(arg, '=') + sizeof(char))) * 1024; singlepart_copy_limit = static_cast<int64_t>(cvt_strtoofft(strchr(arg, '=') + sizeof(char))) * 1024 * 1024;
return 0; return 0;
} }
if(is_prefix(arg, "ahbe_conf=")){ if(is_prefix(arg, "ahbe_conf=")){

View File

@ -64,7 +64,7 @@ FLAGS=(
notsup_compat_dir notsup_compat_dir
sigv2 sigv2
sigv4 sigv4
singlepart_copy_limit=$((10 * 1024)) # limit size to exercise multipart code paths singlepart_copy_limit=10 # limit size to exercise multipart code paths
#use_sse # TODO: S3Proxy does not support SSE #use_sse # TODO: S3Proxy does not support SSE
) )