Skip to content

Commit

Permalink
chore: add comments
Browse files Browse the repository at this point in the history
Signed-off-by: MrCroxx <[email protected]>
  • Loading branch information
MrCroxx committed Mar 18, 2024
1 parent c02c031 commit 3d76389
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/compute/src/memory/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@

use foyer::memory::{LfuConfig, LruConfig};
use risingwave_common::config::{
CacheEvictionConfig, EvictionConfig, StorageConfig, StorageMemoryConfig, MAX_BLOCK_CACHE_SHARD_BITS,
MAX_META_CACHE_SHARD_BITS, MIN_BUFFER_SIZE_PER_SHARD,
CacheEvictionConfig, EvictionConfig, StorageConfig, StorageMemoryConfig,
MAX_BLOCK_CACHE_SHARD_BITS, MAX_META_CACHE_SHARD_BITS, MIN_BUFFER_SIZE_PER_SHARD,
};
use risingwave_common::util::pretty_bytes::convert;

Expand Down Expand Up @@ -187,6 +187,7 @@ pub fn storage_memory_config(
high_priority_ratio_in_percent,
} => EvictionConfig::Lru(LruConfig {
high_priority_pool_ratio: high_priority_ratio_in_percent.unwrap_or(
// adapt to old version
storage_config.high_priority_ratio_in_percent.unwrap_or(
risingwave_common::config::default::storage::high_priority_ratio_in_percent(),
),
Expand Down

0 comments on commit 3d76389

Please sign in to comment.