Fix lock not applied in quota center (#27133)

Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>
pull/27144/head
congqixia 2023-09-15 19:11:25 +08:00 committed by GitHub
parent 4ddeddf758
commit 6ee5fedfef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

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