mirror of https://github.com/milvus-io/milvus.git
Implement the InvalidateCollectionMetaCacheTask in Proxy
Signed-off-by: dragondriver <jiquan.long@zilliz.com>pull/4973/head^2
parent
4d5a9e067c
commit
454c05f2de
|
@ -25,7 +25,12 @@ func (node *NodeImpl) UpdateStateCode(code internalpb2.StateCode) {
|
|||
}
|
||||
|
||||
func (node *NodeImpl) InvalidateCollectionMetaCache(ctx context.Context, request *proxypb.InvalidateCollMetaCacheRequest) (*commonpb.Status, error) {
|
||||
panic("implement me")
|
||||
collectionName := request.CollectionName
|
||||
_ = globalMetaCache.Remove(collectionName) // no need to return error, though collection may be not cached
|
||||
return &commonpb.Status{
|
||||
ErrorCode: commonpb.ErrorCode_SUCCESS,
|
||||
Reason: "",
|
||||
}, nil
|
||||
}
|
||||
|
||||
func (node *NodeImpl) CreateCollection(request *milvuspb.CreateCollectionRequest) (*commonpb.Status, error) {
|
||||
|
|
Loading…
Reference in New Issue