Skip to content

Commit

Permalink
fix: make sure alias is cached (milvus-io#36808)
Browse files Browse the repository at this point in the history
see also milvus-io#36806

Signed-off-by: xiaofanluan <[email protected]>
  • Loading branch information
xiaofan-luan authored Oct 13, 2024
1 parent a645ab8 commit 44564f0
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 44564f0

Please sign in to comment.