summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRémy Coutable <remy@rymai.me>2019-05-10 13:33:04 +0000
committerGitLab Release Tools Bot <robert+release-tools@gitlab.com>2019-06-03 13:00:07 +0000
commit85a624fbee9642dc06b73c46cf8c177332fd7c69 (patch)
tree7f472480349f04ddd427d53d9b6d1da538e8e19f
parent5040b7259b3f422b596fe2f7b040c9bb3506a19a (diff)
downloadgitlab-ce-85a624fbee9642dc06b73c46cf8c177332fd7c69.tar.gz
Merge branch 'sh-revert-full-gc-after-import' into 'master'
Don't run full gc in AfterImportService Closes gitlab-ee#11556 See merge request gitlab-org/gitlab-ce!28239 (cherry picked from commit 4c16ce118498a2e3b98ad069000031fa9c55fcd3) 36b1a2d7 Don't run full gc in AfterImportService
-rw-r--r--app/services/projects/after_import_service.rb2
-rw-r--r--spec/services/projects/after_import_service_spec.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/app/services/projects/after_import_service.rb b/app/services/projects/after_import_service.rb
index afb9048e87b..bbdde4408d2 100644
--- a/app/services/projects/after_import_service.rb
+++ b/app/services/projects/after_import_service.rb
@@ -9,7 +9,7 @@ module Projects
end
def execute
- Projects::HousekeepingService.new(@project, :gc).execute do
+ Projects::HousekeepingService.new(@project).execute do
repository.delete_all_refs_except(RESERVED_REF_PREFIXES)
end
rescue Projects::HousekeepingService::LeaseTaken => e
diff --git a/spec/services/projects/after_import_service_spec.rb b/spec/services/projects/after_import_service_spec.rb
index 765b4ffae8f..4dd6c6dab86 100644
--- a/spec/services/projects/after_import_service_spec.rb
+++ b/spec/services/projects/after_import_service_spec.rb
@@ -13,7 +13,7 @@ describe Projects::AfterImportService do
describe '#execute' do
before do
allow(Projects::HousekeepingService)
- .to receive(:new).with(project, :gc).and_return(housekeeping_service)
+ .to receive(:new).with(project).and_return(housekeeping_service)
allow(housekeeping_service)
.to receive(:execute).and_yield