Skip to content

Commit

Permalink
fix: make sure alias is cached
Browse files Browse the repository at this point in the history
Signed-off-by: xiaofanluan <[email protected]>
  • Loading branch information
xiaofan-luan committed Oct 12, 2024
1 parent 272e312 commit 0d0dac4
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions internal/proxy/meta_cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,9 @@ func (m *MetaCache) update(ctx context.Context, database, collectionName string,
}
})

collectionName = collection.Schema.GetName()
if collectionName == "" {
collectionName = collection.Schema.GetName()
}
m.mu.Lock()
defer m.mu.Unlock()
_, dbOk := m.collInfo[database]
Expand All @@ -492,7 +494,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
}

Expand Down

0 comments on commit 0d0dac4

Please sign in to comment.