-
- Downloads
Make Housekeeping button do a full garbage collection
Previously the Housekeeping button and API would use the counter of last pushes to determine whether to do a full garbage collection, or whether to do one of the less comprehensive tasks: a full repack, incremental pack, or ref pack. This was confusing behavior, since a project owner might have to click the button dozens of times before a full GC would be initiated. This commit forces a full GC each time this is initiated. Note that the `ExclusiveLease` in `HousekeepingService` prevents users from clicking on the button more than once a day. Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/63349
Showing
- app/controllers/projects_controller.rb 1 addition, 1 deletionapp/controllers/projects_controller.rb
- changelogs/unreleased/sh-fix-issue-63349.yml 5 additions, 0 deletionschangelogs/unreleased/sh-fix-issue-63349.yml
- lib/api/projects.rb 1 addition, 1 deletionlib/api/projects.rb
- spec/controllers/projects_controller_spec.rb 47 additions, 0 deletionsspec/controllers/projects_controller_spec.rb
- spec/requests/api/projects_spec.rb 1 addition, 1 deletionspec/requests/api/projects_spec.rb
changelogs/unreleased/sh-fix-issue-63349.yml
0 → 100644
Please register or sign in to comment