mirror of
https://gitee.com/milvus-io/milvus.git
synced 2025-12-06 17:18:35 +08:00
Fix lock not applied in quota center (#27133)
Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>
This commit is contained in:
parent
4ddeddf758
commit
6ee5fedfef
@ -857,7 +857,7 @@ func (q *QuotaCenter) recordMetrics() {
|
||||
|
||||
func (q *QuotaCenter) diskAllowance(collection UniqueID) float64 {
|
||||
q.diskMu.Lock()
|
||||
q.diskMu.Unlock()
|
||||
defer q.diskMu.Unlock()
|
||||
if !Params.QuotaConfig.DiskProtectionEnabled.GetAsBool() {
|
||||
return math.MaxInt64
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user