fix: make sure alias is cached (#36807)

fix #36806

Signed-off-by: xiaofanluan <xiaofan.luan@zilliz.com>
pull/37335/head
Xiaofan 2024-10-31 01:05:03 -07:00 committed by GitHub
parent 284fd68093
commit f13faa37aa
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 2 deletions

View File

@ -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
}