|
|
@ -479,7 +479,7 @@ grpc_error* grpc_call_create(const grpc_call_create_args* args, |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
grpc_core::channelz::Channel* channelz_channel = |
|
|
|
grpc_core::channelz::Channel* channelz_channel = |
|
|
|
grpc_channel_get_channelz_channel_node(call->channel); |
|
|
|
grpc_channel_get_channelz_node(call->channel); |
|
|
|
channelz_channel->RecordCallStarted(); |
|
|
|
channelz_channel->RecordCallStarted(); |
|
|
|
|
|
|
|
|
|
|
|
grpc_slice_unref_internal(path); |
|
|
|
grpc_slice_unref_internal(path); |
|
|
@ -525,7 +525,6 @@ static void release_call(void* call, grpc_error* error) { |
|
|
|
GRPC_CHANNEL_INTERNAL_UNREF(channel, "call"); |
|
|
|
GRPC_CHANNEL_INTERNAL_UNREF(channel, "call"); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
static void set_status_value_directly(grpc_status_code status, void* dest); |
|
|
|
|
|
|
|
static void destroy_call(void* call, grpc_error* error) { |
|
|
|
static void destroy_call(void* call, grpc_error* error) { |
|
|
|
GPR_TIMER_SCOPE("destroy_call", 0); |
|
|
|
GPR_TIMER_SCOPE("destroy_call", 0); |
|
|
|
size_t i; |
|
|
|
size_t i; |
|
|
@ -1261,15 +1260,13 @@ static void post_batch_completion(batch_control* bctl) { |
|
|
|
call->final_op.server.cancelled, nullptr, nullptr); |
|
|
|
call->final_op.server.cancelled, nullptr, nullptr); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (call->channel != nullptr) { |
|
|
|
|
|
|
|
grpc_core::channelz::Channel* channelz_channel = |
|
|
|
grpc_core::channelz::Channel* channelz_channel = |
|
|
|
grpc_channel_get_channelz_channel_node(call->channel); |
|
|
|
grpc_channel_get_channelz_node(call->channel); |
|
|
|
if (*call->final_op.client.status != GRPC_STATUS_OK) { |
|
|
|
if (*call->final_op.client.status != GRPC_STATUS_OK) { |
|
|
|
channelz_channel->RecordCallFailed(); |
|
|
|
channelz_channel->RecordCallFailed(); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
channelz_channel->RecordCallSucceeded(); |
|
|
|
channelz_channel->RecordCallSucceeded(); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
GRPC_ERROR_UNREF(error); |
|
|
|
GRPC_ERROR_UNREF(error); |
|
|
|
error = GRPC_ERROR_NONE; |
|
|
|
error = GRPC_ERROR_NONE; |
|
|
|