Commit 457e702b authored by Ahmad Sherif's avatar Ahmad Sherif

Remove allow_n_plus_1_calls from MergeRequests::CreateService

Fixes #37439
Fixes gitaly#1000
parent 48568a9d
...@@ -9,10 +9,7 @@ module MergeRequests ...@@ -9,10 +9,7 @@ module MergeRequests
merge_request.source_branch = params[:source_branch] merge_request.source_branch = params[:source_branch]
merge_request.merge_params['force_remove_source_branch'] = params.delete(:force_remove_source_branch) merge_request.merge_params['force_remove_source_branch'] = params.delete(:force_remove_source_branch)
# n+1: https://gitlab.com/gitlab-org/gitlab-ce/issues/37439 create(merge_request)
Gitlab::GitalyClient.allow_n_plus_1_calls do
create(merge_request)
end
end end
def before_create(merge_request) def before_create(merge_request)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment