volume:fix return if Replicate write error (#4188)

This commit is contained in:
Neo 2023-02-07 14:34:56 +08:00 committed by GitHub
parent 39be630242
commit d5f77706a8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -48,6 +48,7 @@ func (vs *VolumeServer) PostHandler(w http.ResponseWriter, r *http.Request) {
isUnchanged, writeError := topology.ReplicatedWrite(vs.GetMaster, vs.grpcDialOption, vs.store, volumeId, reqNeedle, r, contentMd5)
if writeError != nil {
writeJsonError(w, r, http.StatusInternalServerError, writeError)
return
}
// http 204 status code does not allow body