diff options
author | Bob Van Landuyt <bob@gitlab.com> | 2019-07-16 11:32:57 +0000 |
---|---|---|
committer | Bob Van Landuyt <bob@gitlab.com> | 2019-07-16 11:32:57 +0000 |
commit | e3c57e1c50df9253aa03ba77df23a83e68844366 (patch) | |
tree | c4aec10c182818a691ecee2920b2fba5131b8a86 /lib | |
parent | aec9bf9edae518e9c6a27873ac30273da07c6c9f (diff) | |
parent | c77d7837bb5e564623b5121e706d76ab7230985b (diff) | |
download | gitlab-ce-e3c57e1c50df9253aa03ba77df23a83e68844366.tar.gz |
Merge branch 'jc-remove-catfile-flag' into 'master'
Remove catfile cache feature flag
See merge request gitlab-org/gitlab-ce!30750
Diffstat (limited to 'lib')
-rw-r--r-- | lib/feature/gitaly.rb | 6 | ||||
-rw-r--r-- | lib/gitlab/gitaly_client.rb | 3 |
2 files changed, 2 insertions, 7 deletions
diff --git a/lib/feature/gitaly.rb b/lib/feature/gitaly.rb index 67c0b902c0c..edfd2fb17f3 100644 --- a/lib/feature/gitaly.rb +++ b/lib/feature/gitaly.rb @@ -5,16 +5,12 @@ require 'set' class Feature class Gitaly # Server feature flags should use '_' to separate words. - # CATFILE_CACHE sets an incorrect example - CATFILE_CACHE = 'catfile-cache'.freeze - SERVER_FEATURE_FLAGS = [ - CATFILE_CACHE, 'get_commit_signatures'.freeze ].freeze - DEFAULT_ON_FLAGS = Set.new([CATFILE_CACHE]).freeze + DEFAULT_ON_FLAGS = Set.new([]).freeze class << self def enabled?(feature_flag) diff --git a/lib/gitlab/gitaly_client.rb b/lib/gitlab/gitaly_client.rb index 091351e5cb2..0b6321c66ab 100644 --- a/lib/gitlab/gitaly_client.rb +++ b/lib/gitlab/gitaly_client.rb @@ -211,8 +211,7 @@ module Gitlab metadata['call_site'] = feature.to_s if feature metadata['gitaly-servers'] = address_metadata(remote_storage) if remote_storage metadata['x-gitlab-correlation-id'] = Labkit::Correlation::CorrelationId.current_id if Labkit::Correlation::CorrelationId.current_id - metadata['gitaly-session-id'] = session_id if Feature::Gitaly.enabled?(Feature::Gitaly::CATFILE_CACHE) - + metadata['gitaly-session-id'] = session_id metadata.merge!(Feature::Gitaly.server_feature_flags) result = { metadata: metadata } |