Skip to content

Commit

Permalink
Refactor: if autoRepair limit set 0,then use 20000 autoRepairLimit on…
Browse files Browse the repository at this point in the history
… datanode

Signed-off-by: awzhgw <[email protected]>
  • Loading branch information
awzhgw committed Aug 27, 2020
1 parent 0546f8c commit 25ec0b1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions datanode/limit.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ func fininshDoExtentRepair() {
}

func setDoExtentRepair(value int) {
if value<=0 {
value=MaxExtentRepairLimit
}
close(extentRepairLimiteRater)
if value > MaxExtentRepairLimit {
value = MaxExtentRepairLimit
Expand Down

0 comments on commit 25ec0b1

Please sign in to comment.