X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/c7259164cd07f09b5d63f39ddc850c50f249ded2..8a56164a8a9d3c7b3b58df77d1e5aa3f1d6cad12:/services/keepstore/volume_unix.go diff --git a/services/keepstore/volume_unix.go b/services/keepstore/volume_unix.go index edec048dfe..7aff85e59a 100644 --- a/services/keepstore/volume_unix.go +++ b/services/keepstore/volume_unix.go @@ -538,7 +538,7 @@ func (v *UnixVolume) translateError(err error) error { } } -var trashLocRegexp = regexp.MustCompile(`/([0-9a-f]{32})\.trash\.(\d+)$`) +var unixTrashLocRegexp = regexp.MustCompile(`/([0-9a-f]{32})\.trash\.(\d+)$`) // EmptyTrash walks hierarchy looking for {hash}.trash.* // and deletes those with deadline < now. @@ -554,7 +554,7 @@ func (v *UnixVolume) EmptyTrash() { if info.Mode().IsDir() { return nil } - matches := trashLocRegexp.FindStringSubmatch(path) + matches := unixTrashLocRegexp.FindStringSubmatch(path) if len(matches) != 3 { return nil }