diff options
author | Nick Thomas <nick@gitlab.com> | 2017-09-21 16:55:08 +0300 |
---|---|---|
committer | Nick Thomas <nick@gitlab.com> | 2017-09-22 12:05:28 +0300 |
commit | ba0ebbb510c4f19738b5e2ac2dee06193aafff3a (patch) | |
tree | 484e0108a315f296c5449928bf9399774debe753 /lib/gitlab/health_checks | |
parent | 26607a1690631916baf5a39d198ff7096cb5bde6 (diff) |
Allow the git circuit breaker to correctly handle missing repository storages
Diffstat (limited to 'lib/gitlab/health_checks')
-rw-r--r-- | lib/gitlab/health_checks/fs_shards_check.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/health_checks/fs_shards_check.rb b/lib/gitlab/health_checks/fs_shards_check.rb index a1905b091b4..afaa59b1018 100644 --- a/lib/gitlab/health_checks/fs_shards_check.rb +++ b/lib/gitlab/health_checks/fs_shards_check.rb @@ -125,7 +125,7 @@ module Gitlab end def storage_circuitbreaker_test(storage_name) - Gitlab::Git::Storage::CircuitBreaker.new(storage_name).perform { "OK" } + Gitlab::Git::Storage::CircuitBreaker.build(storage_name).perform { "OK" } rescue Gitlab::Git::Storage::Inaccessible nil end |