mirror of
https://github.com/minio/minio.git
synced 2025-11-07 12:52:58 -05:00
feat: introduce pool-level rebalance (#15483)
This commit is contained in:
committed by
GitHub
parent
ce8456a1a9
commit
4523da6543
27
cmd/rebalstatus_string.go
Normal file
27
cmd/rebalstatus_string.go
Normal file
@@ -0,0 +1,27 @@
|
||||
// Code generated by "stringer -type=rebalStatus -trimprefix=rebal erasure-server-pool-rebalance.go"; DO NOT EDIT.
|
||||
|
||||
package cmd
|
||||
|
||||
import "strconv"
|
||||
|
||||
func _() {
|
||||
// An "invalid array index" compiler error signifies that the constant values have changed.
|
||||
// Re-run the stringer command to generate them again.
|
||||
var x [1]struct{}
|
||||
_ = x[rebalNone-0]
|
||||
_ = x[rebalStarted-1]
|
||||
_ = x[rebalCompleted-2]
|
||||
_ = x[rebalStopped-3]
|
||||
_ = x[rebalFailed-4]
|
||||
}
|
||||
|
||||
const _rebalStatus_name = "NoneStartedCompletedStoppedFailed"
|
||||
|
||||
var _rebalStatus_index = [...]uint8{0, 4, 11, 20, 27, 33}
|
||||
|
||||
func (i rebalStatus) String() string {
|
||||
if i >= rebalStatus(len(_rebalStatus_index)-1) {
|
||||
return "rebalStatus(" + strconv.FormatInt(int64(i), 10) + ")"
|
||||
}
|
||||
return _rebalStatus_name[_rebalStatus_index[i]:_rebalStatus_index[i+1]]
|
||||
}
|
||||
Reference in New Issue
Block a user