Fix merge errors

reviewable/pr8842/r3
Craig Tiller 8 years ago
parent 81a7937b4b
commit de2508b1da
  1. 4
      src/core/lib/surface/call.c

@ -833,6 +833,7 @@ static grpc_compression_algorithm decode_compression(grpc_mdelem md) {
static void recv_common_filter(grpc_exec_ctx *exec_ctx, grpc_call *call,
grpc_metadata_batch *b) {
if (b->idx.named.grpc_status != NULL) {
uint32_t status_code = decode_status(b->idx.named.grpc_status->md);
grpc_error *error =
status_code == GRPC_STATUS_OK
@ -849,6 +850,8 @@ static void recv_common_filter(grpc_exec_ctx *exec_ctx, grpc_call *call,
}
set_status_from_error(exec_ctx, call, STATUS_FROM_WIRE, error);
grpc_metadata_batch_remove(exec_ctx, b, b->idx.named.grpc_status);
}
}
static void publish_app_metadata(grpc_call *call, grpc_metadata_batch *b,
@ -1187,6 +1190,7 @@ static void validate_filtered_metadata(grpc_exec_ctx *exec_ctx,
static void add_batch_error(grpc_exec_ctx *exec_ctx, batch_control *bctl,
grpc_error *error) {
if (error == GRPC_ERROR_NONE) return;
cancel_with_error(exec_ctx, bctl->call, GRPC_ERROR_REF(error));
int idx = (int)gpr_atm_no_barrier_fetch_add(&bctl->num_errors, 1);
bctl->errors[idx] = error;
}

Loading…
Cancel
Save