Fix diff between num_entries and idx of path

pull/18586/head
Yash Tibrewal 6 years ago
parent 74540483c6
commit 917d025f03
  1. 5
      src/core/ext/filters/client_channel/service_config.cc

@ -154,8 +154,8 @@ grpc_error* ServiceConfig::ParseJsonMethodConfigToServiceConfigObjectsTable(
error_list.push_back(parse_error); error_list.push_back(parse_error);
} else { } else {
GPR_DEBUG_ASSERT(parse_error == GRPC_ERROR_NONE); GPR_DEBUG_ASSERT(parse_error == GRPC_ERROR_NONE);
paths.push_back(std::move(path));
} }
paths.push_back(std::move(path));
} }
} }
} }
@ -216,7 +216,8 @@ grpc_error* ServiceConfig::ParsePerMethodParams(const grpc_json* json_tree) {
error_list.push_back(error); error_list.push_back(error);
} }
} }
GPR_DEBUG_ASSERT(num_entries == idx); // idx might not be equal to num_entries due to parsing errors
num_entries = idx;
break; break;
} }
} }

Loading…
Cancel
Save