[skip ci] Fix grammar mistake in minio_chunk_manager (#13417)

Signed-off-by: yun.zhang <yun.zhang@zilliz.com>

Co-authored-by: yun.zhang <yun.zhang@zilliz.com>
pull/13428/head
jaime 2021-12-15 11:53:47 +08:00 committed by GitHub
parent 91842e347f
commit 0aa8e65501
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -30,7 +30,7 @@ func NewMinioChunkManager(minio *miniokv.MinIOKV) *MinioChunkManager {
} }
} }
// GetPath returns the path of minio data if exist. // GetPath returns the path of minio data if exists.
func (mcm *MinioChunkManager) GetPath(key string) (string, error) { func (mcm *MinioChunkManager) GetPath(key string) (string, error) {
if !mcm.Exist(key) { if !mcm.Exist(key) {
return "", errors.New("minio file manage cannot be found with key:" + key) return "", errors.New("minio file manage cannot be found with key:" + key)
@ -48,13 +48,13 @@ func (mcm *MinioChunkManager) Exist(key string) bool {
return mcm.minio.Exist(key) return mcm.minio.Exist(key)
} }
// Read reads the minio storage data if exist. // Read reads the minio storage data if exists.
func (mcm *MinioChunkManager) Read(key string) ([]byte, error) { func (mcm *MinioChunkManager) Read(key string) ([]byte, error) {
results, err := mcm.minio.Load(key) results, err := mcm.minio.Load(key)
return []byte(results), err return []byte(results), err
} }
// ReadAt reads specific position data of minio storage if exist. // ReadAt reads specific position data of minio storage if exists.
func (mcm *MinioChunkManager) ReadAt(key string, p []byte, off int64) (int, error) { func (mcm *MinioChunkManager) ReadAt(key string, p []byte, off int64) (int, error) {
results, err := mcm.minio.Load(key) results, err := mcm.minio.Load(key)
if err != nil { if err != nil {