mirror of
https://github.com/minio/minio.git
synced 2025-11-09 05:34:56 -05:00
api: Increase the maximum object size limit from 5GiB to 16GiB. (#3834)
The globalMaxObjectSize limit is instilled in S3 spec perhaps due to certain limitations on S3 infrastructure. For minio we don't have such limitations and we can stream a larger file instead. So we are going to bump this limit to 16GiB. Fixes #3825
This commit is contained in:
@@ -110,12 +110,12 @@ func TestMaxObjectSize(t *testing.T) {
|
||||
// Test - 1 - maximum object size.
|
||||
{
|
||||
true,
|
||||
maxObjectSize + 1,
|
||||
globalMaxObjectSize + 1,
|
||||
},
|
||||
// Test - 2 - not maximum object size.
|
||||
{
|
||||
false,
|
||||
maxObjectSize - 1,
|
||||
globalMaxObjectSize - 1,
|
||||
},
|
||||
}
|
||||
for i, s := range sizes {
|
||||
@@ -135,12 +135,12 @@ func TestMinAllowedPartSize(t *testing.T) {
|
||||
// Test - 1 - within minimum part size.
|
||||
{
|
||||
true,
|
||||
minPartSize + 1,
|
||||
globalMinPartSize + 1,
|
||||
},
|
||||
// Test - 2 - smaller than minimum part size.
|
||||
{
|
||||
false,
|
||||
minPartSize - 1,
|
||||
globalMinPartSize - 1,
|
||||
},
|
||||
}
|
||||
|
||||
@@ -161,12 +161,12 @@ func TestMaxPartID(t *testing.T) {
|
||||
// Test - 1 part number within max part number.
|
||||
{
|
||||
false,
|
||||
maxPartID - 1,
|
||||
globalMaxPartID - 1,
|
||||
},
|
||||
// Test - 2 part number bigger than max part number.
|
||||
{
|
||||
true,
|
||||
maxPartID + 1,
|
||||
globalMaxPartID + 1,
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user