-
- Downloads
Fix Gitaly auto-detection caching
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
Showing
- changelogs/unreleased/sh-fix-gitaly-server-info-cache.yml 5 additions, 0 deletionschangelogs/unreleased/sh-fix-gitaly-server-info-cache.yml
- lib/gitlab/gitaly_client.rb 1 addition, 1 deletionlib/gitlab/gitaly_client.rb
- spec/lib/gitlab/gitaly_client_spec.rb 13 additions, 0 deletionsspec/lib/gitlab/gitaly_client_spec.rb
Please register or sign in to comment