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 {
|
func (s *xlStorage) MakeVolBulk(ctx context.Context, volumes ...string) error {
|
||||||
for _, volume := range volumes {
|
for _, volume := range volumes {
|
||||||
if err := s.MakeVol(ctx, volume); err != nil {
|
if err := s.MakeVol(ctx, volume); err != nil && !errors.Is(err, errVolumeExists) {
|
||||||
if errors.Is(err, errDiskAccessDenied) {
|
return err
|
||||||
return errDiskAccessDenied
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
|
Loading…
Reference in New Issue
Block a user