mirror of
https://github.com/cubefs/cubefs.git
synced 2026-08-02 02:00:56 +00:00
fix(blobstore): remove the minimum value limit
In some specific scenarios, a smaller alloc_retry_interval_ms value needs to be set, so the minimum value limit is removed. Signed-off-by: yuzhiqiang <yuzhiqiang_yewu@cmss.chinamobile.com>
This commit is contained in:
parent
0a9673f266
commit
66d45dba3b
@ -237,9 +237,7 @@ func confCheck(cfg *StreamConfig) error {
|
||||
defaulter.LessOrEqual(&cfg.ServicePunishIntervalS, defaultServicePunishIntervalS)
|
||||
defaulter.IntegerLessOrEqual(&cfg.ShardnodePunishIntervalS, 60)
|
||||
defaulter.LessOrEqual(&cfg.AllocRetryTimes, defaultAllocRetryTimes)
|
||||
if cfg.AllocRetryIntervalMS <= 100 {
|
||||
cfg.AllocRetryIntervalMS = defaultAllocRetryIntervalMS
|
||||
}
|
||||
defaulter.LessOrEqual(&cfg.AllocRetryIntervalMS, defaultAllocRetryIntervalMS)
|
||||
defaulter.LessOrEqual(&cfg.ShardnodeRetryTimes, defaultShardnodeRetryTimes)
|
||||
if cfg.ShardnodeRetryIntervalMS <= defaultShardnodeRetryIntervalMS {
|
||||
cfg.ShardnodeRetryIntervalMS = defaultShardnodeRetryIntervalMS
|
||||
|
||||
Loading…
Reference in New Issue
Block a user