Allow writes for bucket exceeding FIFO quota (#9575)

the quota will be enforced while
deleting oldest entries in FIFO manner.
This commit is contained in:
poornas 2020-05-14 15:18:24 -07:00 committed by GitHub
parent c19ece6921
commit fe8d33452b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -155,6 +155,9 @@ func enforceBucketQuota(ctx context.Context, bucket string, size int64) error {
return nil
}
if q.Type == madmin.FIFOQuota {
return nil
}
return globalBucketStorageCache.check(ctx, q, bucket, size)
}