Merge pull request #429 from stevvooe/correct-chunksize-check

Correctly check s3 chunksize parameter
This commit is contained in:
Olivier Gambier 2015-04-23 17:02:27 -07:00
commit 0645327e71

View file

@ -168,7 +168,7 @@ func FromParameters(parameters map[string]interface{}) (*Driver, error) {
return nil, fmt.Errorf("invalid valud for chunksize: %#v", chunkSizeParam) return nil, fmt.Errorf("invalid valud for chunksize: %#v", chunkSizeParam)
} }
if chunkSize <= minChunkSize { if chunkSize < minChunkSize {
return nil, fmt.Errorf("The chunksize %#v parameter should be a number that is larger than or equal to %d", chunkSize, minChunkSize) return nil, fmt.Errorf("The chunksize %#v parameter should be a number that is larger than or equal to %d", chunkSize, minChunkSize)
} }
} }