X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/78d74f846e1b35b6b65d76c345227845d00a9722..70e9fc0a1e57fb4d85d985b4c9258d7a5615b3bb:/services/keepstore/s3_volume.go diff --git a/services/keepstore/s3_volume.go b/services/keepstore/s3_volume.go index da24daf76a..1f62f4a173 100644 --- a/services/keepstore/s3_volume.go +++ b/services/keepstore/s3_volume.go @@ -18,8 +18,8 @@ import ( ) var ( - // Returned by Trash if that operation is impossible with the - // current config. + // ErrS3TrashDisabled is returned by Trash if that operation + // is impossible with the current config. ErrS3TrashDisabled = fmt.Errorf("trash function is disabled because -trash-lifetime=0 and -s3-unsafe-delete=false") s3AccessKeyFile string @@ -592,7 +592,7 @@ func (v *S3Volume) EmptyTrash() { continue } if trashT.Sub(recentT) < blobSignatureTTL { - if age := startT.Sub(recentT); age >= blobSignatureTTL - v.raceWindow { + if age := startT.Sub(recentT); age >= blobSignatureTTL-v.raceWindow { // recent/loc is too old to protect // loc from being Trashed again during // the raceWindow that starts if we