do not rename multipart failed transactions back to tmp (#16204)

This commit is contained in:
Harshavardhana
2022-12-12 01:40:29 -08:00
committed by GitHub
parent 20ef5e7a6a
commit 444ff20bc5
4 changed files with 352 additions and 379 deletions

View File

@@ -258,9 +258,6 @@ const (
// Minimum Part size for multipart upload is 5MiB
globalMinPartSize = 5 * humanize.MiByte
// Maximum Part size for multipart upload is 5GiB
globalMaxPartSize = 5 * humanize.GiByte
// Maximum Part ID for multipart upload is 10000
// (Acceptable values range from 1 to 10000 inclusive)
globalMaxPartID = 10000
@@ -271,11 +268,6 @@ func isMaxObjectSize(size int64) bool {
return size > globalMaxObjectSize
}
// // Check if part size is more than maximum allowed size.
func isMaxAllowedPartSize(size int64) bool {
return size > globalMaxPartSize
}
// Check if part size is more than or equal to minimum allowed size.
func isMinAllowedPartSize(size int64) bool {
return size >= globalMinPartSize