Browse Source

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

pull/4189/head
Neo 2 years ago
committed by GitHub
parent
commit
d5f77706a8
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      weed/server/volume_server_handlers_write.go

1
weed/server/volume_server_handlers_write.go

@ -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) isUnchanged, writeError := topology.ReplicatedWrite(vs.GetMaster, vs.grpcDialOption, vs.store, volumeId, reqNeedle, r, contentMd5)
if writeError != nil { if writeError != nil {
writeJsonError(w, r, http.StatusInternalServerError, writeError) writeJsonError(w, r, http.StatusInternalServerError, writeError)
return
} }
// http 204 status code does not allow body // http 204 status code does not allow body

Loading…
Cancel
Save