Skip to content

Commit

Permalink
Merge pull request #13339 from dgquintas/client_stats_fallback_kaput
Browse files Browse the repository at this point in the history
grpclb: Don't go into fallback if we haven't started picking
  • Loading branch information
dgquintas authored Nov 14, 2017
2 parents 4ed0625 + 3f69cb3 commit 3810749
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1751,7 +1751,7 @@ static void fallback_update_locked(grpc_exec_ctx* exec_ctx,
grpc_lb_addresses_destroy(exec_ctx, glb_policy->fallback_backend_addresses);
glb_policy->fallback_backend_addresses =
extract_backend_addresses_locked(exec_ctx, addresses);
if (glb_policy->lb_fallback_timeout_ms > 0 &&
if (glb_policy->started_picking && glb_policy->lb_fallback_timeout_ms > 0 &&
!glb_policy->fallback_timer_active) {
rr_handover_locked(exec_ctx, glb_policy);
}
Expand Down

0 comments on commit 3810749

Please sign in to comment.