mirror of https://github.com/minio/minio.git
size should not be equal to
This commit is contained in:
parent
3fb597ad2b
commit
43c407bf94
|
@ -1899,7 +1899,7 @@ func (s *xlStorage) CheckParts(ctx context.Context, volume string, path string,
|
||||||
return errFileNotFound
|
return errFileNotFound
|
||||||
}
|
}
|
||||||
// Check if shard is truncated.
|
// Check if shard is truncated.
|
||||||
if st.Size() < fi.Erasure.ShardFileSize(part.Size) {
|
if st.Size() != fi.Erasure.ShardFileSize(part.Size) {
|
||||||
return errFileCorrupt
|
return errFileCorrupt
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue