db759c5d9c
For a given merge request, it's quite common to see duplicate FindCommit Gitaly requests because the Gitaly CommitService caches the request by the commit SHA, not by the ref name. However, most of the duplicate requests use the ref name, so the cache is never actually used in practice. This leads to unnecessary requests that slow performance. This commit allows certain callers to bypass the ref name to OID conversion in the cache. We don't do this by default because it's possible the tip of the branch changes during the commit, which would cause the caller to get stale data. This commit also forces the Ci::Pipeline to use the full ref name so that caching can work for merge requests. Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/57083 |
||
---|---|---|
.. | ||
blob_service_spec.rb | ||
blobs_stitcher_spec.rb | ||
cleanup_service_spec.rb | ||
commit_service_spec.rb | ||
conflict_files_stitcher_spec.rb | ||
conflicts_service_spec.rb | ||
diff_spec.rb | ||
diff_stitcher_spec.rb | ||
health_check_service_spec.rb | ||
notification_service_spec.rb | ||
object_pool_service_spec.rb | ||
operation_service_spec.rb | ||
ref_service_spec.rb | ||
remote_service_spec.rb | ||
repository_service_spec.rb | ||
storage_service_spec.rb | ||
storage_settings_spec.rb | ||
util_spec.rb | ||
wiki_service_spec.rb |