Corret error referencing

reviewable/pr21361/r12
Yash Tibrewal 5 years ago
parent 97b72ec22f
commit 9bcf81925d
  1. 4
      src/core/ext/filters/client_channel/resolver/dns/c_ares/grpc_ares_ev_driver_windows.cc
  2. 5
      src/core/ext/filters/client_channel/xds/xds_client.cc

@ -594,7 +594,6 @@ class GrpcPolledFdWindows {
* the connection is TCP and read the leftovers
* in subsequent c-ares reads. */
if (winsocket_->read_info.wsa_error != WSAEMSGSIZE) {
GRPC_ERROR_UNREF(error);
error = GRPC_WSA_ERROR(winsocket_->read_info.wsa_error,
"OnIocpReadableInner");
GRPC_CARES_TRACE_LOG(
@ -617,7 +616,6 @@ class GrpcPolledFdWindows {
"fd:|%s| OnIocpReadable finishing. read buf length now:|%d|", GetName(),
GRPC_SLICE_LENGTH(read_buf_));
ScheduleAndNullReadClosure(error);
GRPC_ERROR_UNREF(error);
}
static void OnIocpWriteable(void* arg, grpc_error* error) {
@ -633,7 +631,6 @@ class GrpcPolledFdWindows {
GPR_ASSERT(socket_type_ == SOCK_STREAM);
if (error == GRPC_ERROR_NONE) {
if (winsocket_->write_info.wsa_error != 0) {
GRPC_ERROR_UNREF(error);
error = GRPC_WSA_ERROR(winsocket_->write_info.wsa_error,
"OnIocpWriteableInner");
GRPC_CARES_TRACE_LOG(
@ -655,7 +652,6 @@ class GrpcPolledFdWindows {
write_buf_ = grpc_empty_slice();
}
ScheduleAndNullWriteClosure(error);
GRPC_ERROR_UNREF(error);
}
bool gotten_into_driver_list() const { return gotten_into_driver_list_; }

@ -187,13 +187,14 @@ class XdsClient::ChannelState::AdsCallState
}
if (type_url_ == XdsApi::kLdsTypeUrl ||
type_url_ == XdsApi::kRdsTypeUrl) {
ads_calld_->xds_client()->service_config_watcher_->OnError(error);
ads_calld_->xds_client()->service_config_watcher_->OnError(
watcher_error);
} else if (type_url_ == XdsApi::kCdsTypeUrl) {
ClusterState& state = ads_calld_->xds_client()->cluster_map_[name_];
for (const auto& p : state.watchers) {
p.first->OnError(GRPC_ERROR_REF(watcher_error));
}
GRPC_ERROR_UNREF(error);
GRPC_ERROR_UNREF(watcher_error);
} else if (type_url_ == XdsApi::kEdsTypeUrl) {
EndpointState& state = ads_calld_->xds_client()->endpoint_map_[name_];
for (const auto& p : state.watchers) {

Loading…
Cancel
Save