mirror of https://github.com/milvus-io/milvus.git
fix: make sure alias is cached (#36807)
fix #36806 Signed-off-by: xiaofanluan <xiaofan.luan@zilliz.com>pull/37335/head
parent
284fd68093
commit
f13faa37aa
|
@ -468,7 +468,9 @@ func (m *MetaCache) update(ctx context.Context, database, collectionName string,
|
|||
}
|
||||
})
|
||||
|
||||
collectionName = collection.Schema.GetName()
|
||||
if collectionName == "" {
|
||||
collectionName = collection.Schema.GetName()
|
||||
}
|
||||
if database == "" {
|
||||
log.Warn("database is empty, use default database name", zap.String("collectionName", collectionName), zap.Stack("stack"))
|
||||
}
|
||||
|
@ -495,7 +497,8 @@ func (m *MetaCache) update(ctx context.Context, database, collectionName string,
|
|||
partitionKeyIsolation: isolation,
|
||||
}
|
||||
|
||||
log.Info("meta update success", zap.String("database", database), zap.String("collectionName", collectionName), zap.Int64("collectionID", collection.CollectionID))
|
||||
log.Info("meta update success", zap.String("database", database), zap.String("collectionName", collectionName),
|
||||
zap.String("actual collection Name", collection.Schema.GetName()), zap.Int64("collectionID", collection.CollectionID))
|
||||
return m.collInfo[database][collectionName], nil
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue