Commit 73bc9d4e authored by Zeger-Jan van de Weg's avatar Zeger-Jan van de Weg

Don't allow N +1 calls from Root#show

parent 826105df
...@@ -13,10 +13,7 @@ class RootController < Dashboard::ProjectsController ...@@ -13,10 +13,7 @@ class RootController < Dashboard::ProjectsController
before_action :redirect_logged_user, if: -> { current_user.present? } before_action :redirect_logged_user, if: -> { current_user.present? }
def index def index
# n+1: https://gitlab.com/gitlab-org/gitlab-ce/issues/37434 super
Gitlab::GitalyClient.allow_n_plus_1_calls do
super
end
end end
private private
......
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