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
23d80765
Commit
23d80765
authored
Apr 09, 2021
by
Stan Hu
Committed by
Douglas Barbosa Alexandre
Apr 14, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename set_valid_hosts to set_consistent_hosts_for_request
parent
f3e1d2c6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
ee/lib/gitlab/database/load_balancing/load_balancer.rb
ee/lib/gitlab/database/load_balancing/load_balancer.rb
+2
-2
No files found.
ee/lib/gitlab/database/load_balancing/load_balancer.rb
View file @
23d80765
...
...
@@ -165,7 +165,7 @@ module Gitlab
# Hosts can come online after the time when this scan was done,
# so we need to remember the ones that can be used. If the host went
# offline, we'll just rely on the retry mechanism to use the primary.
set_
valid_hosts
(
HostList
.
new
(
valid_hosts
))
set_
consistent_hosts_for_request
(
HostList
.
new
(
valid_hosts
))
# Since we will be using a subset from the original list, let's just
# pick a random host and mix up the original list to ensure we don't
...
...
@@ -176,7 +176,7 @@ module Gitlab
true
end
def
set_
valid_hosts
(
hosts
)
def
set_
consistent_hosts_for_request
(
hosts
)
RequestStore
[
VALID_HOSTS_CACHE_KEY
]
=
hosts
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