mirror of
https://github.com/pgsty/minio.git
synced 2026-10-10 19:55:59 +03:00
Posix CreateFile should work for compressed lengths (#7584)
This commit is contained in:
committed by
kannappanr
parent
a436f2baa5
commit
c113d4e49c
@@ -350,6 +350,9 @@ func calculatePartSizeFromIdx(ctx context.Context, totalSize int64, partSize int
|
||||
logger.LogIf(ctx, errPartSizeIndex)
|
||||
return 0, errPartSizeIndex
|
||||
}
|
||||
if totalSize == -1 {
|
||||
return -1, nil
|
||||
}
|
||||
if totalSize > 0 {
|
||||
// Compute the total count of parts
|
||||
partsCount := totalSize/partSize + 1
|
||||
|
||||
Reference in New Issue
Block a user