From d5f77706a856d272f85a1972199387b7c977aa78 Mon Sep 17 00:00:00 2001 From: Neo Date: Tue, 7 Feb 2023 14:34:56 +0800 Subject: [PATCH] volume:fix return if Replicate write error (#4188) --- weed/server/volume_server_handlers_write.go | 1 + 1 file changed, 1 insertion(+) diff --git a/weed/server/volume_server_handlers_write.go b/weed/server/volume_server_handlers_write.go index 49848ddf3..7517d8641 100644 --- a/weed/server/volume_server_handlers_write.go +++ b/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) if writeError != nil { writeJsonError(w, r, http.StatusInternalServerError, writeError) + return } // http 204 status code does not allow body