Amazon S3 API expects all incoming stream has a content-length
set it was superflous for us to support object layer which supports
unknown sized stream as well, this PR removes such requirements
and explicitly error out if input stream is less than zero.
// Check if an object is present as one of the parent dir.
// -- FIXME. (needs a new kind of lock).
// -- FIXME (this also causes performance issue when disks are down).
@ -504,7 +509,10 @@ func (xl xlObjects) PutObject(bucket string, object string, data *HashReader, me
iferr!=nil{
returnObjectInfo{},toObjectErr(err,bucket,object)
}
buffer:=make([]byte,partsMetadata[0].Erasure.BlockSize,2*partsMetadata[0].Erasure.BlockSize)// alloc additional space for parity blocks created while erasure coding
// Alloc additional space for parity blocks created while erasure codinga