mirror of
https://gitee.com/milvus-io/milvus.git
synced 2025-12-08 01:58:34 +08:00
[skip ci]Fix golint error in minio_kv (#10702)
Signed-off-by: zhenshan.cao <zhenshan.cao@zilliz.com>
This commit is contained in:
parent
dcac9c71b1
commit
d598c78bbf
@ -275,6 +275,7 @@ func (kv *MinIOKV) LoadPartial(key string, start, end int64) ([]byte, error) {
|
|||||||
return ioutil.ReadAll(object)
|
return ioutil.ReadAll(object)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// GetSize obtains the data size of the object with @key.
|
||||||
func (kv *MinIOKV) GetSize(key string) (int64, error) {
|
func (kv *MinIOKV) GetSize(key string) (int64, error) {
|
||||||
objectInfo, err := kv.minioClient.StatObject(kv.ctx, kv.bucketName, key, minio.StatObjectOptions{})
|
objectInfo, err := kv.minioClient.StatObject(kv.ctx, kv.bucketName, key, minio.StatObjectOptions{})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user