add md5 header when UploadData to replication in ReplicatedWrite (#3881)

This commit is contained in:
liubaojiang
2022-10-19 16:34:14 +08:00
committed by GitHub
parent 7e9c53bb5e
commit 25471d579a
3 changed files with 12 additions and 2 deletions

View File

@@ -45,7 +45,7 @@ func (vs *VolumeServer) PostHandler(w http.ResponseWriter, r *http.Request) {
}
ret := operation.UploadResult{}
isUnchanged, writeError := topology.ReplicatedWrite(vs.GetMaster, vs.grpcDialOption, vs.store, volumeId, reqNeedle, r)
isUnchanged, writeError := topology.ReplicatedWrite(vs.GetMaster, vs.grpcDialOption, vs.store, volumeId, reqNeedle, r, contentMd5)
if writeError != nil {
writeJsonError(w, r, http.StatusInternalServerError, writeError)
}