X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/e805640e7904dc282f00be82a2edb53d496a87bb..404d326a66c0f83e2278a2cc012b4b6b87de6459:/services/keepstore/handlers.go diff --git a/services/keepstore/handlers.go b/services/keepstore/handlers.go index 60fdde89c7..089ebb46da 100644 --- a/services/keepstore/handlers.go +++ b/services/keepstore/handlers.go @@ -475,8 +475,10 @@ func (rtr *router) handleDELETE(resp http.ResponseWriter, req *http.Request) { Deleted int `json:"copies_deleted"` Failed int `json:"copies_failed"` } - for _, vol := range rtr.volmgr.AllWritable() { - if err := vol.Trash(hash); err == nil { + for _, vol := range rtr.volmgr.Mounts() { + if !vol.KeepMount.AllowTrash { + continue + } else if err := vol.Trash(hash); err == nil { result.Deleted++ } else if os.IsNotExist(err) { continue @@ -851,7 +853,7 @@ func newPutProgress(classes []string) putProgress { // // The MD5 hash of the BLOCK does not match the argument HASH. // -// 503 Full +// 507 Full // // There was not enough space left in any Keep volume to store // the object.