From 0f371d7e700cab62755a07b2aa67e3ac0eccf877 Mon Sep 17 00:00:00 2001 From: xiaofanluan Date: Sat, 12 Oct 2024 13:15:55 +0800 Subject: [PATCH] make sure alias is cached Signed-off-by: xiaofanluan --- internal/proxy/meta_cache.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/proxy/meta_cache.go b/internal/proxy/meta_cache.go index 8c3b100880502..5ebb056747f98 100644 --- a/internal/proxy/meta_cache.go +++ b/internal/proxy/meta_cache.go @@ -468,7 +468,6 @@ func (m *MetaCache) update(ctx context.Context, database, collectionName string, } }) - collectionName = collection.Schema.GetName() m.mu.Lock() defer m.mu.Unlock() _, dbOk := m.collInfo[database] @@ -492,7 +491,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 }