diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-02-02 21:09:42 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-02-02 21:09:42 +0300 |
commit | 2d66c59d593354aa98785899cc8d5e640f62a012 (patch) | |
tree | b0f82a38ffba401a1ad448983785660038c4cf4b /app/workers/projects | |
parent | dab865db1e85e2fc3dd29dae8dc6b8e11b1ba3f7 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/workers/projects')
-rw-r--r-- | app/workers/projects/git_garbage_collect_worker.rb | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/app/workers/projects/git_garbage_collect_worker.rb b/app/workers/projects/git_garbage_collect_worker.rb index dc22c114115..4f908529b34 100644 --- a/app/workers/projects/git_garbage_collect_worker.rb +++ b/app/workers/projects/git_garbage_collect_worker.rb @@ -7,22 +7,6 @@ module Projects private - # At the moment this was added, the default key was like this. - # With the addition of wikis to housekeeping, this will bring a - # problem because the wiki for project 1 will have the same - # lease key as project 1. - # - # In the `GitGarbageCollectMethods` we namespaced the resource, - # giving us the option to have different resources. Nevertheless, - # we kept this override in order for backward compatibility and avoid - # starting all projects from scratch. - # - # See https://gitlab.com/gitlab-org/gitlab/-/issues/299903 - override :default_lease_key - def default_lease_key(task, resource) - "git_gc:#{task}:#{resource.id}" - end - override :find_resource def find_resource(id) Project.find(id) |