mirror of
https://github.com/minio/minio.git
synced 2025-07-13 02:51:05 -04:00
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
|
||||
}
|
||||
// Check if shard is truncated.
|
||||
if st.Size() < fi.Erasure.ShardFileSize(part.Size) {
|
||||
if st.Size() != fi.Erasure.ShardFileSize(part.Size) {
|
||||
return errFileCorrupt
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user