Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStan Hu <stanhu@gmail.com>2016-11-13 03:00:21 +0300
committerStan Hu <stanhu@gmail.com>2016-11-13 03:00:21 +0300
commit5a65d9d53bd24574c833dd4fba4b8ae44f71b822 (patch)
treee27d68a0285db83a4f0fb097853b1a7ec479a53e /lib/gitlab/current_settings.rb
parent6480259744476ec7fdcb1464ed709f9833f29d95 (diff)
Only turn on Sidekiq throttling if application settings exists
If the database has not been migrated properly, the initializer for Sidekiq will fail to start and cause the whole Rails server to crash. This change checks the existence for the column and allows Rails to start even if the setting has not been added as a database column. Closes #24452
Diffstat (limited to 'lib/gitlab/current_settings.rb')
-rw-r--r--lib/gitlab/current_settings.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/current_settings.rb b/lib/gitlab/current_settings.rb
index 3a651ef318a..c6bb8f9c8ed 100644
--- a/lib/gitlab/current_settings.rb
+++ b/lib/gitlab/current_settings.rb
@@ -24,7 +24,7 @@ module Gitlab
end
def sidekiq_throttling_enabled?
- current_application_settings.sidekiq_throttling_enabled
+ current_application_settings.sidekiq_throttling_enabled?
end
def fake_application_settings