fix(master): expand quota id range to support more quota settings

Signed-off-by: tan changzhi <544463199@qq.com>
This commit is contained in:
tan changzhi 2025-12-05 16:17:34 +08:00 committed by leonrayang
parent 2912760ee5
commit 6915dfd4b6

View File

@ -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)