Skip to content

Commit

Permalink
bugfix: add limit replicaNum from 1-16 cubefs#2
Browse files Browse the repository at this point in the history
Signed-off-by: Victor1319 <[email protected]>
  • Loading branch information
Victor1319 committed Apr 13, 2022
1 parent 9f2ca85 commit d6c9ef0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion master/api_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ func parsePreloadDpReq(r *http.Request, preload *DataPartitionPreLoad) (err erro
return
}

if preload.preloadReplicaNum < 1 || preload.preloadReplicaNum > 15 {
if preload.preloadReplicaNum < 1 || preload.preloadReplicaNum > 16 {
return fmt.Errorf("preload replicaNum must be between [%d] to [%d], now[%d]", 1, 16, preload.preloadReplicaNum)
}

Expand Down

0 comments on commit d6c9ef0

Please sign in to comment.