From d84fc58cac3a48893de757d6c47297e9b575af4c Mon Sep 17 00:00:00 2001 From: Klaus Post Date: Fri, 17 Jul 2020 10:17:59 -0700 Subject: [PATCH] fix: CheckParts endpoint call to correct API (#10073) CheckParts is calling the wrong endpoint, so instead of checking parts, it is writing metadata. --- cmd/storage-rest-client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/storage-rest-client.go b/cmd/storage-rest-client.go index bc3aa4d93..3a508fc02 100644 --- a/cmd/storage-rest-client.go +++ b/cmd/storage-rest-client.go @@ -335,7 +335,7 @@ func (client *storageRESTClient) CheckParts(volume, path string, fi FileInfo) er return err } - respBody, err := client.call(storageRESTMethodWriteMetadata, values, &reader, -1) + respBody, err := client.call(storageRESTMethodCheckParts, values, &reader, -1) defer http.DrainBody(respBody) return err }