mirror of
https://github.com/minio/minio.git
synced 2025-11-07 04:42:56 -05:00
ignore if volume exists in MakeVolBulk, return other errors (#13866)
This commit is contained in:
@@ -679,10 +679,8 @@ func (s *xlStorage) SetDiskID(id string) {
|
||||
|
||||
func (s *xlStorage) MakeVolBulk(ctx context.Context, volumes ...string) error {
|
||||
for _, volume := range volumes {
|
||||
if err := s.MakeVol(ctx, volume); err != nil {
|
||||
if errors.Is(err, errDiskAccessDenied) {
|
||||
return errDiskAccessDenied
|
||||
}
|
||||
if err := s.MakeVol(ctx, volume); err != nil && !errors.Is(err, errVolumeExists) {
|
||||
return err
|
||||
}
|
||||
}
|
||||
return nil
|
||||
|
||||
Reference in New Issue
Block a user