diff options
Diffstat (limited to 'lib/gitlab/exclusive_lease.rb')
-rw-r--r-- | lib/gitlab/exclusive_lease.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/gitlab/exclusive_lease.rb b/lib/gitlab/exclusive_lease.rb index d928301c011..12b5e240962 100644 --- a/lib/gitlab/exclusive_lease.rb +++ b/lib/gitlab/exclusive_lease.rb @@ -43,9 +43,9 @@ module Gitlab # Removes any existing exclusive_lease from redis # Don't run this in a live system without making sure no one is using the leases - def self.reset_all! + def self.reset_all!(scope = '*') Gitlab::Redis::SharedState.with do |redis| - redis.scan_each(match: redis_shared_state_key('*')).each do |key| + redis.scan_each(match: redis_shared_state_key(scope)).each do |key| redis.del(key) end end |