diff options
author | Zeger-Jan van de Weg <git@zjvandeweg.nl> | 2018-02-07 12:29:05 +0100 |
---|---|---|
committer | Zeger-Jan van de Weg <git@zjvandeweg.nl> | 2018-02-07 12:29:05 +0100 |
commit | 73bc9d4eaf8f41532b07a61f5f05d67d6ff78e61 (patch) | |
tree | b78481992bfc6fe277f11aa7be536370d5dd259d /app/controllers/root_controller.rb | |
parent | 826105dfda91081e92dfd5ca7f85a1343893e049 (diff) | |
download | gitlab-ce-73bc9d4eaf8f41532b07a61f5f05d67d6ff78e61.tar.gz |
Don't allow N +1 calls from Root#show
Diffstat (limited to 'app/controllers/root_controller.rb')
-rw-r--r-- | app/controllers/root_controller.rb | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/app/controllers/root_controller.rb b/app/controllers/root_controller.rb index 8acefd58e77..63e5fdb1da5 100644 --- a/app/controllers/root_controller.rb +++ b/app/controllers/root_controller.rb @@ -13,10 +13,7 @@ class RootController < Dashboard::ProjectsController before_action :redirect_logged_user, if: -> { current_user.present? } def index - # n+1: https://gitlab.com/gitlab-org/gitlab-ce/issues/37434 - Gitlab::GitalyClient.allow_n_plus_1_calls do - super - end + super end private |