diff options
author | Bob Van Landuyt <bob@vanlanduyt.co> | 2017-10-16 11:38:01 +0200 |
---|---|---|
committer | Bob Van Landuyt <bob@vanlanduyt.co> | 2017-10-17 12:47:20 +0200 |
commit | c365dea887ae0f139cf99e36701a2e4ca08ec0b9 (patch) | |
tree | eb4e12709429b6ada718376ed3e6135a98e089c3 /lib/gitlab/git/storage/circuit_breaker.rb | |
parent | a854431c6f08386f1a265c524f7dfdba4c59368a (diff) | |
download | gitlab-ce-c365dea887ae0f139cf99e36701a2e4ca08ec0b9.tar.gz |
Don't use `Redis#keys` in the circuitbreakerbvl-do-not-use-redis-keys
Diffstat (limited to 'lib/gitlab/git/storage/circuit_breaker.rb')
-rw-r--r-- | lib/gitlab/git/storage/circuit_breaker.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/git/storage/circuit_breaker.rb b/lib/gitlab/git/storage/circuit_breaker.rb index 1eaa2d83fb6..ba56aa2baf7 100644 --- a/lib/gitlab/git/storage/circuit_breaker.rb +++ b/lib/gitlab/git/storage/circuit_breaker.rb @@ -18,7 +18,7 @@ module Gitlab pattern = "#{Gitlab::Git::Storage::REDIS_KEY_PREFIX}*" Gitlab::Git::Storage.redis.with do |redis| - all_storage_keys = redis.keys(pattern) + all_storage_keys = redis.scan_each(match: pattern).to_a redis.del(*all_storage_keys) unless all_storage_keys.empty? end |