summaryrefslogtreecommitdiff
path: root/lib/gitlab/health_checks/fs_shards_check.rb
diff options
context:
space:
mode:
authorShinya Maeda <shinya@gitlab.com>2018-06-02 11:15:53 +0900
committerShinya Maeda <shinya@gitlab.com>2018-06-02 11:15:53 +0900
commitb02b2602c1bcfd60b760fbfd1aca936475d78474 (patch)
tree09d906b8d6fafcae31994cf0c2af6af2af6970fd /lib/gitlab/health_checks/fs_shards_check.rb
parentc89e57842ebf7f395363bcddaeff76bc7b3f7890 (diff)
parentfe0ebf76c49e2512b211c5d43152275c536f7e3a (diff)
downloadgitlab-ce-b02b2602c1bcfd60b760fbfd1aca936475d78474.tar.gz
Merge branch 'master' into per-project-pipeline-iid
Diffstat (limited to 'lib/gitlab/health_checks/fs_shards_check.rb')
-rw-r--r--lib/gitlab/health_checks/fs_shards_check.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/gitlab/health_checks/fs_shards_check.rb b/lib/gitlab/health_checks/fs_shards_check.rb
index 6e554383270..fcbf266b80b 100644
--- a/lib/gitlab/health_checks/fs_shards_check.rb
+++ b/lib/gitlab/health_checks/fs_shards_check.rb
@@ -77,7 +77,9 @@ module Gitlab
end
def storage_path(storage_name)
- storages_paths[storage_name]&.legacy_disk_path
+ Gitlab::GitalyClient::StorageSettings.allow_disk_access do
+ storages_paths[storage_name]&.legacy_disk_path
+ end
end
# All below test methods use shell commands to perform actions on storage volumes.