diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-10-20 08:43:02 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-10-20 08:43:02 +0000 |
commit | d9ab72d6080f594d0b3cae15f14b3ef2c6c638cb (patch) | |
tree | 2341ef426af70ad1e289c38036737e04b0aa5007 /config/initializers/7_redis.rb | |
parent | d6e514dd13db8947884cd58fe2a9c2a063400a9b (diff) | |
download | gitlab-ce-14.4.0-rc42.tar.gz |
Add latest changes from gitlab-org/gitlab@14-4-stable-eev14.4.0-rc42
Diffstat (limited to 'config/initializers/7_redis.rb')
-rw-r--r-- | config/initializers/7_redis.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/config/initializers/7_redis.rb b/config/initializers/7_redis.rb index 84aa231089b..50f0fb92317 100644 --- a/config/initializers/7_redis.rb +++ b/config/initializers/7_redis.rb @@ -1,5 +1,11 @@ # frozen_string_literal: true +# We set the instance variable directly to suppress warnings. +# We cannot switch to the new behavior until we change all existing `redis.exists` calls to `redis.exists?`. +# Some gems also need to be updated +# https://gitlab.com/gitlab-org/gitlab/-/issues/340602 +Redis.instance_variable_set(:@exists_returns_integer, false) + Redis::Client.prepend(Gitlab::Instrumentation::RedisInterceptor) # Make sure we initialize a Redis connection pool before multi-threaded @@ -11,3 +17,5 @@ Gitlab::Redis::Cache.with { nil } Gitlab::Redis::Queues.with { nil } Gitlab::Redis::SharedState.with { nil } Gitlab::Redis::TraceChunks.with { nil } +Gitlab::Redis::RateLimiting.with { nil } +Gitlab::Redis::Sessions.with { nil } |