Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
B
brpc
Project
Project
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
brpc
Commits
446c0ab3
Commit
446c0ab3
authored
6 years ago
by
cdjgit
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix ut failure
parent
bd7e7e31
master
0.9.8-rc01
0.9.7
0.9.7-rc03
0.9.7-rc02
0.9.7-rc01
0.9.6
0.9.6-rc03
0.9.6-rc02
0.9.6-rc01
No related merge requests found
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
load_balancer.cpp
src/brpc/load_balancer.cpp
+1
-1
consistent_hashing_load_balancer.h
src/brpc/policy/consistent_hashing_load_balancer.h
+1
-1
No files found.
src/brpc/load_balancer.cpp
View file @
446c0ab3
...
...
@@ -74,7 +74,7 @@ int SharedLoadBalancer::Init(const char* lb_protocol) {
LOG
(
FATAL
)
<<
"Fail to find LoadBalancer by `"
<<
lb_name
<<
"'"
;
return
-
1
;
}
LoadBalancer
*
_lb
=
lb
->
New
(
lb_params
);
_lb
=
lb
->
New
(
lb_params
);
if
(
_lb
==
NULL
)
{
LOG
(
FATAL
)
<<
"Fail to new LoadBalancer"
;
return
-
1
;
...
...
This diff is collapsed.
Click to expand it.
src/brpc/policy/consistent_hashing_load_balancer.h
View file @
446c0ab3
...
...
@@ -63,9 +63,9 @@ public:
void
Destroy
();
int
SelectServer
(
const
SelectIn
&
in
,
SelectOut
*
out
);
void
Describe
(
std
::
ostream
&
os
,
const
DescribeOptions
&
options
);
bool
SetParameters
(
const
butil
::
StringPiece
&
params
);
private
:
bool
SetParameters
(
const
butil
::
StringPiece
&
params
);
void
GetLoads
(
std
::
map
<
butil
::
EndPoint
,
double
>
*
load_map
);
static
size_t
AddBatch
(
std
::
vector
<
Node
>
&
bg
,
const
std
::
vector
<
Node
>
&
fg
,
const
std
::
vector
<
Node
>
&
servers
,
bool
*
executed
);
...
...
This diff is collapsed.
Click to expand it.
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