mirror of
https://github.com/minio/minio.git
synced 2024-12-24 06:05:55 -05:00
ignore if volume exists in MakeVolBulk, return other errors (#13866)
This commit is contained in:
parent
85d2df02b9
commit
3b79f7e4ae
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user