summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAndrew Newdigate <andrew@gitlab.com>2017-09-30 16:26:23 +0000
committerRobert Speicher <robert@gitlab.com>2017-09-30 16:26:23 +0000
commit2146d6253fadfec82e58d66e59b9ec50fdf3d761 (patch)
tree87223ef0f2af0e1ee2a3e25188a37fd05da838dc /lib
parent0781e956e4a4174494aa28b62b8dfc92a92e8e84 (diff)
downloadgitlab-ce-2146d6253fadfec82e58d66e59b9ec50fdf3d761.tar.gz
Add environment variable to bypass n+1
Diffstat (limited to 'lib')
-rw-r--r--lib/gitlab/gitaly_client.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/gitaly_client.rb b/lib/gitlab/gitaly_client.rb
index 955d2307f88..e75e0500ed8 100644
--- a/lib/gitlab/gitaly_client.rb
+++ b/lib/gitlab/gitaly_client.rb
@@ -151,7 +151,7 @@ module Gitlab
actual_call_count = increment_call_count("gitaly_#{call_site}_actual")
# Do no enforce limits in production
- return if Rails.env.production?
+ return if Rails.env.production? || ENV["GITALY_DISABLE_REQUEST_LIMITS"]
# Check if this call is nested within a allow_n_plus_1_calls
# block and skip check if it is