Commit eb63889f authored by Bob Van Landuyt's avatar Bob Van Landuyt

Don't memoize storage configuration on `FsShardsCheck`

These values are already coming from memory, so we don't need to
memoize.

If we do memoize these, than the would not be stubbed when calling
`stub_storage_settings` in specs
parent cfccb278
...@@ -58,11 +58,11 @@ module Gitlab ...@@ -58,11 +58,11 @@ module Gitlab
end end
def repository_storages def repository_storages
@repository_storage ||= storages_paths.keys storages_paths.keys
end end
def storages_paths def storages_paths
@storage_paths ||= Gitlab.config.repositories.storages Gitlab.config.repositories.storages
end end
def exec_with_timeout(cmd_args, *args, &block) def exec_with_timeout(cmd_args, *args, &block)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment