Skip to content

Fix Gitaly auto-detection caching

Stan Hu requested to merge sh-fix-gitaly-server-info-cache into master

If GitalyClient#can_use_disk? returned false, it was never cached properly and led to excessive number of Gitaly calls. Instead of using cached_value.present?, we need to check cached_value.nil?.

Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/64802

Edited by Stan Hu

Merge request reports