fix proxy node (#5965)

Signed-off-by: yefu.chen <yefu.chen@zilliz.com>
pull/5966/head
neza2017 2021-06-22 14:04:08 +08:00 committed by GitHub
parent 01dac73080
commit 5cdc1af1af
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -78,8 +78,9 @@ func (node *ProxyNode) InvalidateCollectionMetaCache(ctx context.Context, reques
zap.String("collection", request.CollectionName))
collectionName := request.CollectionName
globalMetaCache.RemoveCollection(ctx, collectionName) // no need to return error, though collection may be not cached
if globalMetaCache != nil {
globalMetaCache.RemoveCollection(ctx, collectionName) // no need to return error, though collection may be not cached
}
log.Debug("InvalidateCollectionMetaCache Done",
zap.String("role", Params.RoleName),
zap.String("db", request.DbName),