mirror of
https://github.com/pgsty/minio.git
synced 2026-07-19 12:10:24 +03:00
simplify bucket metadata lookups for versioning/object locking (#17253)
This commit is contained in:
@@ -705,7 +705,7 @@ func (a adminAPIHandlers) ImportBucketMetadataHandler(w http.ResponseWriter, r *
|
||||
}
|
||||
if _, ok := bucketMap[bucket]; !ok {
|
||||
opts := MakeBucketOptions{
|
||||
LockEnabled: config.ObjectLockEnabled == "Enabled",
|
||||
LockEnabled: config.Enabled(),
|
||||
}
|
||||
err = objectAPI.MakeBucket(ctx, bucket, opts)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user