Skip to content

Commit

Permalink
chore: tiny rename
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 678dc12 commit f161847
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/common/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1750,14 +1750,14 @@ pub fn extract_storage_memory_config(s: &RwConfig) -> StorageMemoryConfig {
.storage
.shared_buffer_capacity_mb
.unwrap_or(default::storage::shared_buffer_capacity_mb());
let meta_shard_num = s.storage.cache.meta_cache_shard_num.unwrap_or_else(|| {
let meta_cache_shard_num = s.storage.cache.meta_cache_shard_num.unwrap_or_else(|| {
let mut shard_bits = MAX_META_CACHE_SHARD_BITS;
while (meta_cache_capacity_mb >> shard_bits) < MIN_BUFFER_SIZE_PER_SHARD && shard_bits > 0 {
shard_bits -= 1;
}
shard_bits
});
let block_shard_num = s.storage.cache.block_cache_shard_num.unwrap_or_else(|| {
let block_cache_shard_num = s.storage.cache.block_cache_shard_num.unwrap_or_else(|| {
let mut shard_bits = MAX_CACHE_SHARD_BITS;
while (block_cache_capacity_mb >> shard_bits) < MIN_BUFFER_SIZE_PER_SHARD && shard_bits > 0
{
Expand Down Expand Up @@ -1821,9 +1821,9 @@ pub fn extract_storage_memory_config(s: &RwConfig) -> StorageMemoryConfig {

StorageMemoryConfig {
block_cache_capacity_mb,
block_cache_shard_num: block_shard_num,
block_cache_shard_num,
meta_cache_capacity_mb,
meta_cache_shard_num: meta_shard_num,
meta_cache_shard_num,
shared_buffer_capacity_mb,
data_file_cache_ring_buffer_capacity_mb,
meta_file_cache_ring_buffer_capacity_mb,
Expand Down

0 comments on commit f161847

Please sign in to comment.