[skip ci] Refine minio kv comment (#12369)

Signed-off-by: Edward Zeng <jie.zeng@zilliz.com>
pull/12386/head
edward.zeng 2021-11-29 17:55:41 +08:00 committed by GitHub
parent b86b767654
commit 772857d9c1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -146,7 +146,7 @@ func (kv *MinIOKV) FGetObject(key, localPath string) error {
return kv.minioClient.FGetObject(kv.ctx, kv.bucketName, key, localPath+key, minio.GetObjectOptions{})
}
// FGetObjects download file from minio to local storage system.
// FGetObjects downloads files from minio to local storage system.
// For parallell downloads file, n goroutines will be started to download n keys.
func (kv *MinIOKV) FGetObjects(keys []string, localPath string) error {
var wg sync.WaitGroup
@ -199,7 +199,7 @@ func (kv *MinIOKV) Save(key, value string) error {
return err
}
// MultiSave save multiple objects, the path is the key of @kvs.
// MultiSave saves multiple objects, the path is the key of @kvs.
// The object value is the value of @kvs.
func (kv *MinIOKV) MultiSave(kvs map[string]string) error {
var resultErr error
@ -214,7 +214,7 @@ func (kv *MinIOKV) MultiSave(kvs map[string]string) error {
return resultErr
}
// RemoveWithPrefix remove all objects with the same prefix @prefix from minio.
// RemoveWithPrefix removes all objects with the same prefix @prefix from minio.
func (kv *MinIOKV) RemoveWithPrefix(prefix string) error {
objectsCh := make(chan minio.ObjectInfo)