mirror of
https://github.com/cubefs/cubefs.git
synced 2026-08-02 02:00:56 +00:00
fix(master): expand quota id range to support more quota settings
Signed-off-by: tan changzhi <544463199@qq.com>
This commit is contained in:
parent
2912760ee5
commit
6915dfd4b6
@ -129,10 +129,10 @@ func (alloc *IDAllocator) restoreMaxQuotaID() {
|
||||
panic(fmt.Sprintf("Failed to restore maxQuotaID,err:%v ", err.Error()))
|
||||
}
|
||||
|
||||
if maxQuotaID > 0 && maxQuotaID <= math.MaxInt32 {
|
||||
if maxQuotaID > 0 && maxQuotaID <= math.MaxUint32 {
|
||||
alloc.quotaID = uint32(maxQuotaID)
|
||||
} else {
|
||||
alloc.quotaID = math.MaxInt32
|
||||
alloc.quotaID = math.MaxUint32
|
||||
}
|
||||
|
||||
log.LogInfof("action[restoreMaxCommonID] maxQuotaID[%v]", alloc.quotaID)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user