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:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-02-12 15:09:01 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2020-02-12 15:09:01 +0300
commitbd497e352ebd279536ae11855871162e82a3f88c (patch)
tree2241444d4be33e199d7011b872713071a8f8cd41 /lib/feature.rb
parent0388886f9439fa93efea29a159522aec5643f7c8 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib/feature.rb')
-rw-r--r--lib/feature.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/feature.rb b/lib/feature.rb
index 543512b1598..aadc2c64957 100644
--- a/lib/feature.rb
+++ b/lib/feature.rb
@@ -32,6 +32,8 @@ class Feature
end
def persisted_names
+ return [] unless Gitlab::Database.exists?
+
Gitlab::SafeRequestStore[:flipper_persisted_names] ||=
begin
# We saw on GitLab.com, this database request was called 2300