summaryrefslogtreecommitdiff
path: root/changelogs
diff options
context:
space:
mode:
authorStan Hu <stanhu@gmail.com>2019-03-31 06:38:23 -0700
committerDouglas Barbosa Alexandre <dbalexandre@gmail.com>2019-04-01 13:33:16 -0300
commitd4c6a3af78c0ef8257c453980832c4d419aabb51 (patch)
tree0bb125fa5169fd1fb75b7b3a6f757b8ad1ab77be /changelogs
parent8813447c6fd6a9c843433cc7dfda6a95fc4c2b58 (diff)
downloadgitlab-ce-d4c6a3af78c0ef8257c453980832c4d419aabb51.tar.gz
Force a full GC after importing a projectsh-force-gc-after-import
During a project import, it's possible that new branches are created by the importer to handle pull requests that have been created from forked projects, which would increment the `pushes_since_gc` value via `HousekeepingService.increment!` before a full garbage collection gets to run. This causes HousekeepingService to skip the full `git gc` and move to the incremental repack mode. To ensure that a garbage collection is run to pack refs and objects, explicitly execute the task. Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/59477
Diffstat (limited to 'changelogs')
-rw-r--r--changelogs/unreleased/sh-force-gc-after-import.yml5
1 files changed, 5 insertions, 0 deletions
diff --git a/changelogs/unreleased/sh-force-gc-after-import.yml b/changelogs/unreleased/sh-force-gc-after-import.yml
new file mode 100644
index 00000000000..755d66c1607
--- /dev/null
+++ b/changelogs/unreleased/sh-force-gc-after-import.yml
@@ -0,0 +1,5 @@
+---
+title: Force a full GC after importing a project
+merge_request: 26803
+author:
+type: performance