mirror of
https://github.com/minio/minio.git
synced 2024-12-24 06:05:55 -05:00
disksWithAllParts should use parts if present (#11923)
This commit is contained in:
parent
b8ec365397
commit
edf053c5c9
@ -223,7 +223,7 @@ func disksWithAllParts(ctx context.Context, onlineDisks []StorageAPI, partsMetad
|
||||
}
|
||||
|
||||
// Always check data, if we got it.
|
||||
if len(meta.Data) > 0 || meta.Size == 0 {
|
||||
if (len(meta.Data) > 0 || meta.Size == 0) && len(meta.Parts) > 0 {
|
||||
checksumInfo := meta.Erasure.GetChecksumInfo(meta.Parts[0].Number)
|
||||
dataErrs[i] = bitrotVerify(bytes.NewBuffer(meta.Data),
|
||||
int64(len(meta.Data)),
|
||||
|
Loading…
Reference in New Issue
Block a user