mirror of
https://github.com/minio/minio.git
synced 2025-11-09 05:34:56 -05:00
simplify bucket metadata lookups for versioning/object locking (#17253)
This commit is contained in:
@@ -1627,8 +1627,8 @@ func (z *erasureServerPools) GetBucketInfo(ctx context.Context, bucket string, o
|
||||
meta, err := globalBucketMetadataSys.Get(bucket)
|
||||
if err == nil {
|
||||
bucketInfo.Created = meta.Created
|
||||
bucketInfo.Versioning = meta.LockEnabled || globalBucketVersioningSys.Enabled(bucket)
|
||||
bucketInfo.ObjectLocking = meta.LockEnabled
|
||||
bucketInfo.Versioning = meta.Versioning()
|
||||
bucketInfo.ObjectLocking = meta.ObjectLocking()
|
||||
}
|
||||
return bucketInfo, nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user