mirror of https://github.com/milvus-io/milvus.git
[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
parent
91842e347f
commit
0aa8e65501
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue