未验证 提交 61786f76 编写于 作者: G godchen 提交者: GitHub

Add file exist check (#6840)

Signed-off-by: Ngodchen <qingxiang.chen@zilliz.com>
上级 1a61a159
......@@ -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 {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册