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-06-30 00:28:41 +0300
committerStan Hu <stanhu@gmail.com>2016-06-30 00:28:41 +0300
commitd10642a4b86d91faf7a3ffa508b4e8067213b14c (patch)
tree4b094a4d86a66c2f7a6ad03ef9f1eb7a896915ef /lib/gitlab/current_settings.rb
parentc600cf83488398cf66b10af85ed9490fe9457bd4 (diff)
Handle case when Redis cache returns an empty setting
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 67d6be3515d..54b46e5d23f 100644
--- a/lib/gitlab/current_settings.rb
+++ b/lib/gitlab/current_settings.rb
@@ -11,7 +11,7 @@ module Gitlab
def ensure_application_settings!
if connect_to_db?
begin
- settings = ::ApplicationSetting.cached
+ settings = ::ApplicationSetting.current
# In case Redis isn't running or the Redis UNIX socket file is not available
rescue ::Redis::BaseError, ::Errno::ENOENT
settings = ::ApplicationSetting.last