Make comparison of LB policy name case-insensitive.

pull/13596/head
Mark D. Roth 7 years ago
parent 44c143c587
commit dd01db3728
  1. 2
      src/core/ext/filters/client_channel/client_channel.cc

@ -432,7 +432,7 @@ static void on_resolver_result_changed_locked(grpc_exec_ctx* exec_ctx,
// once at any given time.
lb_policy_name_changed =
chand->info_lb_policy_name == nullptr ||
strcmp(chand->info_lb_policy_name, lb_policy_name) != 0;
gpr_stricmp(chand->info_lb_policy_name, lb_policy_name) != 0;
if (chand->lb_policy != nullptr && !lb_policy_name_changed) {
// Continue using the same LB policy. Update with new addresses.
lb_policy_updated = true;

Loading…
Cancel
Save