Revert "xl: CreateFile shouldn't prematurely timeout (#11854)"

This reverts commit 922c7b57f5.
This commit is contained in:
Harshavardhana
2021-03-23 23:47:13 -07:00
parent e80239a661
commit 21cfc4aa49
3 changed files with 7 additions and 9 deletions

View File

@@ -337,10 +337,8 @@ func (client *storageRESTClient) CreateFile(ctx context.Context, volume, path st
values.Set(storageRESTFilePath, path)
values.Set(storageRESTLength, strconv.Itoa(int(size)))
respBody, err := client.call(ctx, storageRESTMethodCreateFile, values, ioutil.NopCloser(reader), size)
if err != nil {
return err
}
return waitForHTTPStream(respBody, ioutil.Discard)
defer http.DrainBody(respBody)
return err
}
func (client *storageRESTClient) WriteMetadata(ctx context.Context, volume, path string, fi FileInfo) error {