BigW Consortium Gitlab

Commit eb63889f by 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
end
def repository_storages
@repository_storage ||= storages_paths.keys
storages_paths.keys
end
def storages_paths
@storage_paths ||= Gitlab.config.repositories.storages
Gitlab.config.repositories.storages
end
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