mirror of
https://github.com/pgsty/minio.git
synced 2026-07-21 05:00:22 +03:00
fix: CheckParts endpoint call to correct API (#10073)
CheckParts is calling the wrong endpoint, so instead of checking parts, it is writing metadata.
This commit is contained in:
@@ -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
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user