diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-10-08 21:13:02 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-10-08 21:13:02 +0300 |
commit | e7527f548681e4f9efd32f9c3da937ad74c68948 (patch) | |
tree | ef51227ccbbeb1accc8e3886870dbc6a168e8bb8 /lib/gitlab/redis | |
parent | f2ac9ee99ac6b1afc0edbc8621a05176dddd6a14 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib/gitlab/redis')
-rw-r--r-- | lib/gitlab/redis/wrapper.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/gitlab/redis/wrapper.rb b/lib/gitlab/redis/wrapper.rb index db1e24a3201..7b804038146 100644 --- a/lib/gitlab/redis/wrapper.rb +++ b/lib/gitlab/redis/wrapper.rb @@ -96,6 +96,8 @@ module Gitlab end def instrumentation_class + return unless defined?(::Gitlab::Instrumentation::Redis) + "::Gitlab::Instrumentation::Redis::#{store_name}".constantize end end @@ -112,6 +114,10 @@ module Gitlab raw_config_hash[:url] end + def db + redis_store_options[:db] + end + def sentinels raw_config_hash[:sentinels] end |