X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/818611f4561ec927935f2cc1e71c767800899c8a..37f7559e8d9a4df3515d78663b65b9220550457f:/services/keepstore/unix_volume.go diff --git a/services/keepstore/unix_volume.go b/services/keepstore/unix_volume.go index 8c935dcddb..dee4bdc1c1 100644 --- a/services/keepstore/unix_volume.go +++ b/services/keepstore/unix_volume.go @@ -442,8 +442,7 @@ func (v *UnixVolume) Trash(loc string) error { // be re-written), or (b) Touch() will update the file's timestamp and // Trash() will read the correct up-to-date timestamp and choose not to // trash the file. - - if v.volume.ReadOnly || !v.cluster.Collections.BlobTrash { + if v.volume.ReadOnly && !v.volume.AllowTrashWhenReadOnly { return MethodDisabledError } if err := v.lock(context.TODO()); err != nil {