mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-12-01 03:18:29 +08:00
Add file exist check (#6840)
Signed-off-by: godchen <qingxiang.chen@zilliz.com>
This commit is contained in:
parent
1a61a15960
commit
61786f769c
@ -32,6 +32,9 @@ func NewVectorChunkManager(localChunkManager ChunkManager, remoteChunkManager Ch
|
||||
}
|
||||
|
||||
func (vcm *VectorChunkManager) DownloadVectorFile(key string, schema *etcdpb.CollectionMeta) error {
|
||||
if vcm.localChunkManager.Exist(key) {
|
||||
return nil
|
||||
}
|
||||
insertCodec := NewInsertCodec(schema)
|
||||
content, err := vcm.remoteChunkManager.Read(key)
|
||||
if err != nil {
|
||||
|
Loading…
Reference in New Issue
Block a user