Fix nil disk check in parity upgrade feature (#12444)

Fixes #12443
This commit is contained in:
Klaus Post 2021-06-04 18:38:19 +02:00 committed by GitHub
parent c0e79e28b2
commit d524544494
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -610,6 +610,7 @@ func (er erasureObjects) putObject(ctx context.Context, bucket string, object st
}
if disk == nil {
parityDrives++
continue
}
di, err := disk.DiskInfo(ctx)
if err != nil || di.ID == "" {