Merge branch 'zj-opt-out-list-commits-by-oid' into 'master'
Move ListCommitsByOid to OPT_OUT See merge request gitlab-org/gitlab-ce!18175
This commit is contained in:
commit
4ef3e835cf
2 changed files with 7 additions and 1 deletions
5
changelogs/unreleased/zj-opt-out-list-commits-by-oid.yml
Normal file
5
changelogs/unreleased/zj-opt-out-list-commits-by-oid.yml
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
---
|
||||||
|
title: ListCommitsByOid is executed by Gitaly by default
|
||||||
|
merge_request:
|
||||||
|
author:
|
||||||
|
type: performance
|
|
@ -231,7 +231,8 @@ module Gitlab
|
||||||
# relation to each other. The last 10 commits for a branch for example,
|
# relation to each other. The last 10 commits for a branch for example,
|
||||||
# should go through .where
|
# should go through .where
|
||||||
def batch_by_oid(repo, oids)
|
def batch_by_oid(repo, oids)
|
||||||
repo.gitaly_migrate(:list_commits_by_oid) do |is_enabled|
|
repo.gitaly_migrate(:list_commits_by_oid,
|
||||||
|
status: Gitlab::GitalyClient::MigrationStatus::OPT_OUT) do |is_enabled|
|
||||||
if is_enabled
|
if is_enabled
|
||||||
repo.gitaly_commit_client.list_commits_by_oid(oids)
|
repo.gitaly_commit_client.list_commits_by_oid(oids)
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue