2018-06-21 21:41:30 +05:30
|
|
|
Required to support updation from 8 to 10
|
|
|
|
|
|
|
|
Bug, upstream: https://gitlab.com/gitlab-org/gitlab-ce/issues/48040
|
|
|
|
|
|
|
|
--- a/lib/gitlab/gitaly_client.rb
|
|
|
|
+++ b/lib/gitlab/gitaly_client.rb
|
2018-12-06 11:33:01 +05:30
|
|
|
@@ -240,6 +240,12 @@
|
2018-06-21 21:41:30 +05:30
|
|
|
# Disabled features are always off!
|
|
|
|
return false if status == MigrationStatus::DISABLED
|
2018-11-08 20:39:57 +05:30
|
|
|
|
2018-06-21 21:41:30 +05:30
|
|
|
+ # If the features table does not exist, don't check the feature, just return
|
|
|
|
+ # the default
|
2018-06-27 18:29:42 +05:30
|
|
|
+ unless Gitlab::Database.cached_table_exists?(Feature::FlipperFeature.table_name)
|
2018-06-25 19:16:31 +05:30
|
|
|
+ return false
|
2018-06-21 21:41:30 +05:30
|
|
|
+ end
|
|
|
|
+
|
|
|
|
feature = Feature.get("gitaly_#{feature_name}")
|
2018-11-08 20:39:57 +05:30
|
|
|
|
2018-06-21 21:41:30 +05:30
|
|
|
# If the feature has been set, always evaluate
|