BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
2ba01185
Unverified
Commit
2ba01185
authored
Mar 28, 2018
by
Zeger-Jan van de Weg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move ListCommitsByOid to OPT_OUT
Acceptence testing was successfull in [#844](
https://gitlab.com/gitlab-org/gitaly/issues/844
) Part of gitlab-org/gitaly#670
parent
eaed588b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletion
+7
-1
zj-opt-out-list-commits-by-oid.yml
changelogs/unreleased/zj-opt-out-list-commits-by-oid.yml
+5
-0
commit.rb
lib/gitlab/git/commit.rb
+2
-1
No files found.
changelogs/unreleased/zj-opt-out-list-commits-by-oid.yml
0 → 100644
View file @
2ba01185
---
title
:
ListCommitsByOid is executed by Gitaly by default
merge_request
:
author
:
type
:
performance
lib/gitlab/git/commit.rb
View file @
2ba01185
...
...
@@ -231,7 +231,8 @@ module Gitlab
# relation to each other. The last 10 commits for a branch for example,
# should go through .where
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
repo
.
gitaly_commit_client
.
list_commits_by_oid
(
oids
)
else
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment