Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
57373d44
Commit
57373d44
authored
Dec 10, 2019
by
Nick Thomas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Do git gc, not repack, after moving a repository between shards
parent
a4f730c5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
ee/app/services/projects/update_repository_storage_service.rb
...pp/services/projects/update_repository_storage_service.rb
+4
-3
No files found.
ee/app/services/projects/update_repository_storage_service.rb
View file @
57373d44
...
...
@@ -92,13 +92,14 @@ module Projects
end
# The underlying FetchInternalRemote call uses a `git fetch` to move data
# to the new repository, which leaves it in a less-well-packed state and
# lacking bitmaps. Housekeeping will boost performance significantly.
# to the new repository, which leaves it in a less-well-packed state,
# lacking bitmaps and commit graphs. Housekeeping will boost performance
# significantly.
def
enqueue_housekeeping
return
unless
Gitlab
::
CurrentSettings
.
housekeeping_enabled?
return
unless
Feature
.
enabled?
(
:repack_after_shard_migration
,
project
)
Projects
::
HousekeepingService
.
new
(
project
,
:
full_repack
).
execute
Projects
::
HousekeepingService
.
new
(
project
,
:
gc
).
execute
rescue
Projects
::
HousekeepingService
::
LeaseTaken
# No action required
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment