Skip to content

Commit

Permalink
create ".minio.sys" dir even if multi-buckets are not enabled (#4367)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhijian-pro authored Jan 22, 2024
1 parent a43dea7 commit 2bce542
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions pkg/gateway/gateway.go
Original file line number Diff line number Diff line change
Expand Up @@ -196,11 +196,13 @@ func (n *jfsObjects) DeleteBucket(ctx context.Context, bucket string, forceDelet
}

func (n *jfsObjects) MakeBucketWithLocation(ctx context.Context, bucket string, options minio.BucketOptions) error {
if err := n.isValidBucketName(bucket); err != nil {
return err
}
if !n.gConf.MultiBucket {
return nil
if bucket != minio.MinioMetaBucket {
if err := n.isValidBucketName(bucket); err != nil {
return err
}
if !n.gConf.MultiBucket {
return nil
}
}
eno := n.fs.Mkdir(mctx, n.path(bucket), 0777, n.gConf.Umask)
return jfsToObjectErr(ctx, eno, bucket)
Expand Down

0 comments on commit 2bce542

Please sign in to comment.