diff options
author | 2017-07-27 19:24:52 -0700 | |
---|---|---|
committer | 2017-07-27 19:24:52 -0700 | |
commit | 6a7935e14e6500d94e52b4dd5b049fa236eba7e0 (patch) | |
tree | ec745a418c11c07f2e6fa6b1d54ecbeba8ebd310 /src/core/ext/filters/client_channel/lb_policy | |
parent | 1d27c66d8e06a6f8ca72d1a8cd3c7532f9e20fb4 (diff) |
Watch the LB channel using the right initial conn. state
Diffstat (limited to 'src/core/ext/filters/client_channel/lb_policy')
-rw-r--r-- | src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb.c b/src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb.c index f248a873ba..3d76aaac02 100644 --- a/src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb.c +++ b/src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb.c @@ -1772,7 +1772,8 @@ static void glb_update_locked(grpc_exec_ctx *exec_ctx, grpc_lb_policy *policy, if (!glb_policy->watching_lb_channel) { // Watch the LB channel connectivity for connection. - glb_policy->lb_channel_connectivity = GRPC_CHANNEL_INIT; + glb_policy->lb_channel_connectivity = grpc_channel_check_connectivity_state( + glb_policy->lb_channel, true /* try to connect */); grpc_channel_element *client_channel_elem = grpc_channel_stack_last_element( grpc_channel_get_channel_stack(glb_policy->lb_channel)); GPR_ASSERT(client_channel_elem->filter == &grpc_client_channel_filter); |