|
|
|
@ -733,7 +733,8 @@ class ChannelData::ConnectivityStateAndPickerSetter { |
|
|
|
|
chand->channelz_node_->AddTraceEvent( |
|
|
|
|
channelz::ChannelTrace::Severity::Info, |
|
|
|
|
grpc_slice_from_static_string( |
|
|
|
|
GetChannelConnectivityStateChangeString(state))); |
|
|
|
|
channelz::ChannelNode::GetChannelConnectivityStateChangeString( |
|
|
|
|
state))); |
|
|
|
|
} |
|
|
|
|
// Bounce into the data plane combiner to reset the picker.
|
|
|
|
|
GRPC_CHANNEL_STACK_REF(chand->owning_stack_, |
|
|
|
@ -744,23 +745,6 @@ class ChannelData::ConnectivityStateAndPickerSetter { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private: |
|
|
|
|
static const char* GetChannelConnectivityStateChangeString( |
|
|
|
|
grpc_connectivity_state state) { |
|
|
|
|
switch (state) { |
|
|
|
|
case GRPC_CHANNEL_IDLE: |
|
|
|
|
return "Channel state change to IDLE"; |
|
|
|
|
case GRPC_CHANNEL_CONNECTING: |
|
|
|
|
return "Channel state change to CONNECTING"; |
|
|
|
|
case GRPC_CHANNEL_READY: |
|
|
|
|
return "Channel state change to READY"; |
|
|
|
|
case GRPC_CHANNEL_TRANSIENT_FAILURE: |
|
|
|
|
return "Channel state change to TRANSIENT_FAILURE"; |
|
|
|
|
case GRPC_CHANNEL_SHUTDOWN: |
|
|
|
|
return "Channel state change to SHUTDOWN"; |
|
|
|
|
} |
|
|
|
|
GPR_UNREACHABLE_CODE(return "UNKNOWN"); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
static void SetPicker(void* arg, grpc_error* ignored) { |
|
|
|
|
auto* self = static_cast<ConnectivityStateAndPickerSetter*>(arg); |
|
|
|
|
// Update picker.
|
|
|
|
|