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
0
Merge Requests
0
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
Boxiang Sun
gitlab-ce
Commits
20e3ed60
Commit
20e3ed60
authored
Apr 04, 2017
by
Sean McGivern
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'workhorse-gitaly-address' into 'master'
Pass GitalyAddress to workhorse See merge request !10447
parents
a46cca2e
ca94d200
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
2 deletions
+9
-2
lib/gitlab/workhorse.rb
lib/gitlab/workhorse.rb
+6
-1
spec/lib/gitlab/workhorse_spec.rb
spec/lib/gitlab/workhorse_spec.rb
+3
-1
No files found.
lib/gitlab/workhorse.rb
View file @
20e3ed60
...
@@ -45,7 +45,12 @@ module Gitlab
...
@@ -45,7 +45,12 @@ module Gitlab
raise
"Unsupported action:
#{
action
}
"
raise
"Unsupported action:
#{
action
}
"
end
end
params
[
:GitalySocketPath
]
=
URI
(
address
).
path
if
feature_enabled
if
feature_enabled
params
[
:GitalyAddress
]
=
address
# TODO deprecate GitalySocketPath once GITLAB_WORKHORSE_VERSION points
# to a version that supports GitalyAddress.
params
[
:GitalySocketPath
]
=
URI
(
address
).
path
end
end
end
params
params
...
...
spec/lib/gitlab/workhorse_spec.rb
View file @
20e3ed60
...
@@ -188,8 +188,10 @@ describe Gitlab::Workhorse, lib: true do
...
@@ -188,8 +188,10 @@ describe Gitlab::Workhorse, lib: true do
context
'when Gitaly is enabled'
do
context
'when Gitaly is enabled'
do
let
(
:gitaly_params
)
do
let
(
:gitaly_params
)
do
address
=
Gitlab
::
GitalyClient
.
get_address
(
'default'
)
{
{
GitalySocketPath
:
URI
(
Gitlab
::
GitalyClient
.
get_address
(
'default'
)).
path
,
GitalySocketPath
:
URI
(
address
).
path
,
GitalyAddress
:
address
,
}
}
end
end
...
...
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