From 83910593cadc93e8e95d8cfa974cb6db84fb1220 Mon Sep 17 00:00:00 2001 From: yah01 Date: Sat, 12 Aug 2023 21:43:30 +0800 Subject: [PATCH] Fix IndexNode panic if storage config empty (#26302) Signed-off-by: yah01 --- internal/indexnode/chunk_mgr_factory.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/indexnode/chunk_mgr_factory.go b/internal/indexnode/chunk_mgr_factory.go index 17ae59385a..dac70ce9cf 100644 --- a/internal/indexnode/chunk_mgr_factory.go +++ b/internal/indexnode/chunk_mgr_factory.go @@ -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 }