From 34963de45876787ac41bde6c99e163256bb494b0 Mon Sep 17 00:00:00 2001 From: tnextday Date: Wed, 2 Dec 2015 21:35:50 +0800 Subject: [PATCH] returen chunks file size when delete a chunkmanifest --- go/weed/weed_server/volume_server_handlers_write.go | 1 + 1 file changed, 1 insertion(+) diff --git a/go/weed/weed_server/volume_server_handlers_write.go b/go/weed/weed_server/volume_server_handlers_write.go index 911ed96fa..9aa998c3c 100644 --- a/go/weed/weed_server/volume_server_handlers_write.go +++ b/go/weed/weed_server/volume_server_handlers_write.go @@ -76,6 +76,7 @@ func (vs *VolumeServer) DeleteHandler(w http.ResponseWriter, r *http.Request) { writeJsonError(w, r, http.StatusInternalServerError, errors.New("Delete chunks error: " + e.Error())) return } + count = chunkManifest.Size } ret := topology.ReplicatedDelete(vs.GetMasterNode(), vs.store, volumeId, n, r)