mirror of https://github.com/milvus-io/milvus.git
Fix lock not applied in quota center (#27133)
Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>pull/27144/head
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…
Reference in New Issue