fix: CheckParts endpoint call to correct API (#10073)

CheckParts is calling the wrong endpoint, so instead of 
checking parts, it is writing metadata.
master
Klaus Post 4 years ago committed by GitHub
parent 187c3f62df
commit d84fc58cac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      cmd/storage-rest-client.go

@ -335,7 +335,7 @@ func (client *storageRESTClient) CheckParts(volume, path string, fi FileInfo) er
return err return err
} }
respBody, err := client.call(storageRESTMethodWriteMetadata, values, &reader, -1) respBody, err := client.call(storageRESTMethodCheckParts, values, &reader, -1)
defer http.DrainBody(respBody) defer http.DrainBody(respBody)
return err return err
} }

Loading…
Cancel
Save