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 30, 2024
1 parent 9c4c702 commit 2d022ce
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions internal/proxy/meta_cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -468,14 +468,11 @@ func (m *MetaCache) update(ctx context.Context, database, collectionName string,
}
})

<<<<<<< HEAD
collectionName = collection.Schema.GetName()
if database == "" {
log.Warn("database is empty, use default database name", zap.String("collectionName", collectionName), zap.Stack("stack"))
=======
if collectionName == "" {
collectionName = collection.Schema.GetName()
>>>>>>> 4774463151 (fix: alias is not cached)
}
if database == "" {
log.Warn("database is empty, use default database name", zap.String("collectionName", collectionName), zap.Stack("stack"))
}
m.mu.Lock()
defer m.mu.Unlock()
Expand Down

0 comments on commit 2d022ce

Please sign in to comment.