Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
Grpc
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tci-gateway-module
Grpc
Commits
c280b568
Commit
c280b568
authored
8 years ago
by
Jan Tattermusch
Committed by
GitHub
8 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #8765 from jtattermusch/fix_unreacheable_code_usage
Fix usage of GPR_UNREACHABLE_CODE
parents
7647b2eb
b0fb2d2b
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/core/ext/lb_policy/pick_first/pick_first.c
+1
-1
1 addition, 1 deletion
src/core/ext/lb_policy/pick_first/pick_first.c
src/core/ext/lb_policy/round_robin/round_robin.c
+1
-1
1 addition, 1 deletion
src/core/ext/lb_policy/round_robin/round_robin.c
with
2 additions
and
2 deletions
src/core/ext/lb_policy/pick_first/pick_first.c
+
1
−
1
View file @
c280b568
...
@@ -293,7 +293,7 @@ static void pf_connectivity_changed(grpc_exec_ctx *exec_ctx, void *arg,
...
@@ -293,7 +293,7 @@ static void pf_connectivity_changed(grpc_exec_ctx *exec_ctx, void *arg,
loop:
loop:
switch
(
p
->
checking_connectivity
)
{
switch
(
p
->
checking_connectivity
)
{
case
GRPC_CHANNEL_INIT
:
case
GRPC_CHANNEL_INIT
:
GPR_UNREACHABLE_CODE
();
GPR_UNREACHABLE_CODE
(
return
);
case
GRPC_CHANNEL_READY
:
case
GRPC_CHANNEL_READY
:
grpc_connectivity_state_set
(
exec_ctx
,
&
p
->
state_tracker
,
grpc_connectivity_state_set
(
exec_ctx
,
&
p
->
state_tracker
,
GRPC_CHANNEL_READY
,
GRPC_ERROR_NONE
,
GRPC_CHANNEL_READY
,
GRPC_ERROR_NONE
,
...
...
This diff is collapsed.
Click to expand it.
src/core/ext/lb_policy/round_robin/round_robin.c
+
1
−
1
View file @
c280b568
...
@@ -553,7 +553,7 @@ static void rr_connectivity_changed(grpc_exec_ctx *exec_ctx, void *arg,
...
@@ -553,7 +553,7 @@ static void rr_connectivity_changed(grpc_exec_ctx *exec_ctx, void *arg,
}
}
switch
(
sd
->
curr_connectivity_state
)
{
switch
(
sd
->
curr_connectivity_state
)
{
case
GRPC_CHANNEL_INIT
:
case
GRPC_CHANNEL_INIT
:
GPR_UNREACHABLE_CODE
();
GPR_UNREACHABLE_CODE
(
return
);
case
GRPC_CHANNEL_READY
:
case
GRPC_CHANNEL_READY
:
/* add the newly connected subchannel to the list of connected ones.
/* add the newly connected subchannel to the list of connected ones.
* Note that it goes to the "end of the line". */
* Note that it goes to the "end of the line". */
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment