Skip to content

Commit

Permalink
Fix IndexNode panic if storage config empty
Browse files Browse the repository at this point in the history
Signed-off-by: yah01 <yah2er0ne@outlook.com>
  • Loading branch information
yah01 committed Aug 11, 2023
1 parent 9489e14 commit 197569e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/indexnode/chunk_mgr_factory.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 197569e

Please sign in to comment.