未验证 提交 3cfc740a 编写于 作者: E edward.zeng 提交者: GitHub

Refine minio kv FGetObject function (#12078)

Signed-off-by: NEdward Zeng <jie.zeng@zilliz.com>
上级 d4c297b1
...@@ -137,13 +137,9 @@ func (kv *MinIOKV) Load(key string) (string, error) { ...@@ -137,13 +137,9 @@ func (kv *MinIOKV) Load(key string) (string, error) {
return buf.String(), nil return buf.String(), nil
} }
// FGetObject download file from minio to local storage system. // FGetObject downloads file from minio to local storage system.
func (kv *MinIOKV) FGetObject(key, localPath string) error { func (kv *MinIOKV) FGetObject(key, localPath string) error {
err := kv.minioClient.FGetObject(kv.ctx, kv.bucketName, key, localPath+key, minio.GetObjectOptions{}) return kv.minioClient.FGetObject(kv.ctx, kv.bucketName, key, localPath+key, minio.GetObjectOptions{})
if err != nil {
return err
}
return nil
} }
// FGetObjects download file from minio to local storage system. // FGetObjects download file from minio to local storage system.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册