Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
ab40c7e3
Commit
ab40c7e3
authored
Jun 11, 2018
by
Jacob Vosmaer (GitLab)
Committed by
Sean McGivern
Jun 11, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move gitaly_blame, gitaly_count_commits, gitaly_commit_count to opt-out
parent
7d3bbeeb
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
3 deletions
+8
-3
changelogs/unreleased/gitaly-commit-count-opt-out.yml
changelogs/unreleased/gitaly-commit-count-opt-out.yml
+5
-0
lib/gitlab/git/blame.rb
lib/gitlab/git/blame.rb
+1
-1
lib/gitlab/git/repository.rb
lib/gitlab/git/repository.rb
+2
-2
No files found.
changelogs/unreleased/gitaly-commit-count-opt-out.yml
0 → 100644
View file @
ab40c7e3
---
title
:
Move some Gitaly RPC's to opt-out
merge_request
:
19591
author
:
type
:
other
lib/gitlab/git/blame.rb
View file @
ab40c7e3
...
...
@@ -22,7 +22,7 @@ module Gitlab
private
def
load_blame
raw_output
=
@repo
.
gitaly_migrate
(
:blame
)
do
|
is_enabled
|
raw_output
=
@repo
.
gitaly_migrate
(
:blame
,
status:
Gitlab
::
GitalyClient
::
MigrationStatus
::
OPT_OUT
)
do
|
is_enabled
|
if
is_enabled
load_blame_by_gitaly
else
...
...
lib/gitlab/git/repository.rb
View file @
ab40c7e3
...
...
@@ -533,7 +533,7 @@ module Gitlab
def
count_commits
(
options
)
count_commits_options
=
process_count_commits_options
(
options
)
gitaly_migrate
(
:count_commits
)
do
|
is_enabled
|
gitaly_migrate
(
:count_commits
,
status:
Gitlab
::
GitalyClient
::
MigrationStatus
::
OPT_OUT
)
do
|
is_enabled
|
if
is_enabled
count_commits_by_gitaly
(
count_commits_options
)
else
...
...
@@ -738,7 +738,7 @@ module Gitlab
#
# Gitaly migration: https://gitlab.com/gitlab-org/gitaly/issues/330
def
commit_count
(
ref
)
gitaly_migrate
(
:commit_count
)
do
|
is_enabled
|
gitaly_migrate
(
:commit_count
,
status:
Gitlab
::
GitalyClient
::
MigrationStatus
::
OPT_OUT
)
do
|
is_enabled
|
if
is_enabled
gitaly_commit_client
.
commit_count
(
ref
)
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