mirror of
https://gitee.com/milvus-io/milvus.git
synced 2026-01-07 19:31:51 +08:00
Fix IndexNode panic if storage config empty (#26302)
Signed-off-by: yah01 <yah2er0ne@outlook.com>
This commit is contained in:
parent
a173486d2e
commit
83910593ca
@ -25,7 +25,7 @@ func NewChunkMgrFactory() *chunkMgrFactory {
|
||||
}
|
||||
|
||||
func (m *chunkMgrFactory) NewChunkManager(ctx context.Context, config *indexpb.StorageConfig) (storage.ChunkManager, error) {
|
||||
key := m.cacheKey(config.StorageType, config.BucketName, config.Address)
|
||||
key := m.cacheKey(config.GetStorageType(), config.GetBucketName(), config.GetAddress())
|
||||
if v, ok := m.cached.Get(key); ok {
|
||||
return v, nil
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user