size should not be equal to

This commit is contained in:
Harshavardhana 2022-06-20 20:45:16 -07:00 committed by Minio Trusted
parent 3fb597ad2b
commit 43c407bf94
1 changed files with 1 additions and 1 deletions

View File

@ -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
}
}