Skip to content

Commit fefbcd1

Browse files
wenyihu6tbg
authored andcommitted
asim: use << 20 instead of 1024*1024
This commit updates defaultRangeSizeSplitThreshold to use bit shifting instead of multiplication for convention. Epic: none Release note: none
1 parent c8b6470 commit fefbcd1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/kv/kvserver/asim/config/settings.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const (
1313
defaultReplicaChangeBaseDelay = 100 * time.Millisecond
1414
defaultRebalancingSnapshotRate = 32 << 20 // 32MiB/s
1515
defaultSplitQueueDelay = 100 * time.Millisecond
16-
defaultRangeSizeSplitThreshold = 512 * 1024 * 1024 // 512mb
16+
defaultRangeSizeSplitThreshold = 512 << 20 // 512MiB
1717
defaultRangeRebalanceThreshold = 0.05
1818
defaultPacerLoopInterval = 10 * time.Minute
1919
defaultPacerMinIterInterval = 10 * time.Millisecond

0 commit comments

Comments
 (0)