|
@ -7,8 +7,8 @@ import ( |
|
|
"mime" |
|
|
"mime" |
|
|
"net/http" |
|
|
"net/http" |
|
|
"os" |
|
|
"os" |
|
|
"pkg/operation" |
|
|
|
|
|
"pkg/storage" |
|
|
|
|
|
|
|
|
"weed/operation" |
|
|
|
|
|
"weed/storage" |
|
|
"runtime" |
|
|
"runtime" |
|
|
"strconv" |
|
|
"strconv" |
|
|
"strings" |
|
|
"strings" |
|
@ -242,7 +242,7 @@ func DeleteHandler(w http.ResponseWriter, r *http.Request) { |
|
|
n.Size = 0 |
|
|
n.Size = 0 |
|
|
ret, err := store.Delete(volumeId, n) |
|
|
ret, err := store.Delete(volumeId, n) |
|
|
if err != nil { |
|
|
if err != nil { |
|
|
log.Println("delete error: %s", err) |
|
|
|
|
|
|
|
|
log.Printf("delete error: %s\n", err) |
|
|
return |
|
|
return |
|
|
} |
|
|
} |
|
|
|
|
|
|