mirror of
https://github.com/minio/minio.git
synced 2024-12-24 06:05:55 -05:00
fix: crash in hard quota enforcement (#13403)
due to data structure change after multi-site replication, hard quota was broken due to data structure change. This PR fixes this.
This commit is contained in:
parent
9f652708ee
commit
02c24a860d
@ -89,7 +89,10 @@ func (sys *BucketQuotaSys) check(ctx context.Context, bucket string, size int64)
|
||||
return err
|
||||
}
|
||||
|
||||
dui := v.(madmin.DataUsageInfo)
|
||||
dui, ok := v.(DataUsageInfo)
|
||||
if !ok {
|
||||
return fmt.Errorf("internal error: Unexpected DUI data type: %T", v)
|
||||
}
|
||||
|
||||
bui, ok := dui.BucketsUsage[bucket]
|
||||
if !ok {
|
||||
|
Loading…
Reference in New Issue
Block a user