Skip to content

Commit af5a726

Browse files
authored
fix(cache): fix improper config usage in cache manager (#18002) (#18009)
fix(cache): Fix improper config usage in cache manager Correct the implementation to properly respect configuration parameters for block metadata caching. Previously, the configuration values for segment_block_metas_count and block_meta_count were not being correctly applied. Added test case to verify proper configuration handling.
1 parent 8d449b1 commit af5a726

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/query/storages/common/cache/src/manager.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -206,12 +206,11 @@ impl CacheManager {
206206

207207
let segment_block_metas_cache = Self::new_items_cache_slot(
208208
MEMORY_CACHE_SEGMENT_BLOCK_METAS,
209-
config.block_meta_count as usize,
209+
config.segment_block_metas_count as usize,
210210
);
211211

212212
let block_meta_cache = Self::new_items_cache_slot(
213213
MEMORY_CACHE_BLOCK_META,
214-
// TODO replace this config
215214
config.block_meta_count as usize,
216215
);
217216

0 commit comments

Comments
 (0)